modification date of detailed files in Android
Posted: Tue Jun 02, 2015 8:07 pm
Hi.
I'm updating my simple app and have hit another issue. I'm saving a binary file to the Android specialFolderPath("documents") directory. Every time my app launches it checks whether the file is there. If so if asks for the detailed file information on it. I am returned a comma-delimited list as expected the entries corresponding as follows:
* The file's name, URL-encoded
* The file's size in bytes (on Mac OS and OS X systems, the size of the file's data fork)
* The resource fork size in bytes (Mac OS and OS X systems only)
* The file's creation date in seconds (Mac OS, OS X, and Windows systems only)
* The file's modification date in seconds
* The file's last-accessed date in seconds (Unix, OS X and Windows systems only)
* The file's last-backup date in seconds (Mac OS and OS X systems only)
* The file's owner (Unix and OS X systems only)
* The file's group owner (Unix and OS X systems only)
* The file's access permissions
* The file's creator and file type (Mac OS and OS X only)
I want to query the file's modification date. But the modification date entry (5) is explicitly set to 0. Why is this? It works fine in iOS. Any insight appreciated.
Kind regards, Paul.
I'm updating my simple app and have hit another issue. I'm saving a binary file to the Android specialFolderPath("documents") directory. Every time my app launches it checks whether the file is there. If so if asks for the detailed file information on it. I am returned a comma-delimited list as expected the entries corresponding as follows:
* The file's name, URL-encoded
* The file's size in bytes (on Mac OS and OS X systems, the size of the file's data fork)
* The resource fork size in bytes (Mac OS and OS X systems only)
* The file's creation date in seconds (Mac OS, OS X, and Windows systems only)
* The file's modification date in seconds
* The file's last-accessed date in seconds (Unix, OS X and Windows systems only)
* The file's last-backup date in seconds (Mac OS and OS X systems only)
* The file's owner (Unix and OS X systems only)
* The file's group owner (Unix and OS X systems only)
* The file's access permissions
* The file's creator and file type (Mac OS and OS X only)
I want to query the file's modification date. But the modification date entry (5) is explicitly set to 0. Why is this? It works fine in iOS. Any insight appreciated.
Kind regards, Paul.