diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/src/com/android/io/FileWrapper.java | 4 | ||||
-rw-r--r-- | common/src/com/android/io/IAbstractFile.java | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/common/src/com/android/io/FileWrapper.java b/common/src/com/android/io/FileWrapper.java index c1e8f81..2859c0d 100644 --- a/common/src/com/android/io/FileWrapper.java +++ b/common/src/com/android/io/FileWrapper.java @@ -137,6 +137,10 @@ public class FileWrapper extends File implements IAbstractFile { return isFile(); } + public long getModificationStamp() { + return lastModified(); + } + public IAbstractFolder getParentFolder() { String p = this.getParent(); if (p == null) { diff --git a/common/src/com/android/io/IAbstractFile.java b/common/src/com/android/io/IAbstractFile.java index d8d794d..6dfc8d8 100644 --- a/common/src/com/android/io/IAbstractFile.java +++ b/common/src/com/android/io/IAbstractFile.java @@ -50,4 +50,9 @@ public interface IAbstractFile extends IAbstractResource { * Returns the preferred mode to write into the file. */ PreferredWriteMode getPreferredWriteMode(); + + /** + * Returns the last modification timestamp + */ + long getModificationStamp(); } |