public class FileTreeSnapshot extends Object
Constructor and Description |
---|
FileTreeSnapshot(File inRoot) |
FileTreeSnapshot(File inRoot,
FileFilter inFilter) |
FileTreeSnapshot(File inRoot,
FileFilter inFilter,
int inMaxDepth) |
FileTreeSnapshot(File inRoot,
int inMaxDepth) |
FileTreeSnapshot(XMLNode inXMLNode) |
FileTreeSnapshot(XMLNode inXMLNode,
FileFilter inFilter) |
Modifier and Type | Method and Description |
---|---|
List<WatchEvent<Path>> |
getEvents(File inRoot)
Returns a list of create/modify/delete events for files changed relative to the snapshot.
|
List<File> |
getFiles() |
List<File> |
getModifiedFiles(File inRoot)
Returns a list of files that are present in the specified file root but not
in the snapshot or files that are present in both the specified file root
and the snapshot but whose last modification dates are different.
|
Date |
getSnapshotDate() |
XMLNode |
toXMLNode() |
public FileTreeSnapshot(File inRoot)
public FileTreeSnapshot(File inRoot, int inMaxDepth)
public FileTreeSnapshot(File inRoot, FileFilter inFilter)
public FileTreeSnapshot(File inRoot, FileFilter inFilter, int inMaxDepth)
public FileTreeSnapshot(XMLNode inXMLNode)
public FileTreeSnapshot(XMLNode inXMLNode, FileFilter inFilter)
public Date getSnapshotDate()
public List<File> getModifiedFiles(File inRoot)
inRoot
- public List<WatchEvent<Path>> getEvents(File inRoot)
inRoot
- file root to compare with the snapshot