Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
  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();
    }
  }