private OFileClassic createFile(String fileName) { OFileClassic fileClassic = new OFileClassic(); String path = storageLocal .getVariableParser() .resolveVariables(storageLocal.getStoragePath() + File.separator + fileName); fileClassic.init(path, storageLocal.getMode()); return fileClassic; }
public boolean exists(String fileName) { synchronized (syncObject) { if (nameIdMap != null && nameIdMap.containsKey(fileName)) return true; final File file = new File( storageLocal .getVariableParser() .resolveVariables(storageLocal.getStoragePath() + File.separator + fileName)); return file.exists(); } }