|Constructor and Description|
|Modifier and Type||Method and Description|
Deletes a file locally and/or creates a conflicting file if the file does not match the expectations.
createFolder, createSymlink, deleteFile, fileAsExpected, fileAsExpected, fileChanges, fileExists, getAbsolutePathFile, getFile1, getFile2, getType, moveFileToFinalLocation, moveToConflictFile, moveToConflictFile, setFileAttributes, setFileAttributes, setLastModified, setLastModified
public FileSystemActionResult execute() throws java.lang.Exception
Normal case: The file version of the to-be-deleted file is known. If the file is as expected, it is deleted; if not and the file exists, a conflict file is created.
Special case: The file version of the to-be-deleted file in unknown.
In case to-be-deleted-file exists locally, we need to compare it to
the local file (especially its checksum!). The
does, however, perform a cancelling test in which
FileVersions marked as
'DELETED' are not compared in detail (no checksum/attribute/etc. comparisons). To
circumvent this behavior, we pretend the file has just changed and do the comparison.
If the to-be-deleted file and file version are equal, the local file is deleted.
Otherwise, a conflict file is created.
public java.lang.String toString()
Syncany is an open-source cloud storage and filesharing application.
Code located at https://github.com/syncany/syncany
JavaDoc for version 0.4.9-alpha generated based on commit f2749f7 at Thu Feb 16 08:16:44 UTC 2017
Copyright © 2011-2015 Philipp C. Heckel