Package com.aoindustries.io
Class DirectoryMetaSnapshot
- java.lang.Object
-
- com.aoindustries.io.DirectoryMetaSnapshot
-
public final class DirectoryMetaSnapshot extends Object
Recursively (but not following symbolic links), gets a snapshot of the meta data for a directory. To see if any file has been modified, this meta data may be compared to a snapshot of the same directory at a different time. To perform a quick comparison of two directory trees, a snapshot may be compared to a snapshot of a different directory. Only watches the lengths and modified times for filesystem objects that Java considers a file.- Author:
- AO Industries, Inc.
- See Also:
for what Java considers a file
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDirectoryMetaSnapshot.FileMetaSnapshot
-
Constructor Summary
Constructors Constructor Description DirectoryMetaSnapshot(String startPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Checks that all meta data is equal in the two directory tree snapshots.SortedMap<String,DirectoryMetaSnapshot.FileMetaSnapshot>getFiles()inthashCode()
-
-
-
Constructor Detail
-
DirectoryMetaSnapshot
public DirectoryMetaSnapshot(String startPath) throws IOException
- Throws:
IOException
-
-
Method Detail
-
equals
public boolean equals(Object obj)
Checks that all meta data is equal in the two directory tree snapshots.
-
getFiles
public SortedMap<String,DirectoryMetaSnapshot.FileMetaSnapshot> getFiles()
-
-