public void deleteVersion(long version) throws IOException { File versionFile = new File(versionPath(version)); File tokenFile = new File(tokenPath(version)); if (tokenFile.exists()) { FileUtils.forceDelete(tokenFile); } if (versionFile.exists()) { FileUtils.forceDelete(versionFile); } }
public void deleteVersion(long version) throws IOException { File versionFile = new File(versionPath(version)); File tokenFile = new File(tokenPath(version)); if(versionFile.exists()) { FileUtils.forceDelete(versionFile); } if(tokenFile.exists()) { FileUtils.forceDelete(tokenFile); } }
public void succeedVersion(String path) throws IOException { long version = validateAndGetVersion(path); // should rewrite this to do a file move createNewFile(tokenPath(version)); }
public void succeedVersion(String path) throws IOException { long version = validateAndGetVersion(path); // should rewrite this to do a file move createNewFile(tokenPath(version)); }
public void deleteVersion(long version) throws IOException { File versionFile = new File(versionPath(version)); File tokenFile = new File(tokenPath(version)); if(versionFile.exists()) { FileUtils.forceDelete(versionFile); } if(tokenFile.exists()) { FileUtils.forceDelete(tokenFile); } }
public void deleteVersion(long version) throws IOException { File versionFile = new File(versionPath(version)); File tokenFile = new File(tokenPath(version)); if (tokenFile.exists()) { FileUtils.forceDelete(tokenFile); } if (versionFile.exists()) { FileUtils.forceDelete(versionFile); } }
public void succeedVersion(String path) throws IOException { long version = validateAndGetVersion(path); // should rewrite this to do a file move createNewFile(tokenPath(version)); }
public void succeedVersion(String path) throws IOException { long version = validateAndGetVersion(path); // should rewrite this to do a file move createNewFile(tokenPath(version)); }