Page 1 of 1

modification date of detailed files in Android

Posted: Tue Jun 02, 2015 8:07 pm
by GSA_DC
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.

Re: modification date of detailed files in Android

Posted: Wed Jun 03, 2015 8:47 pm
by jmburnod
hi Paul,
I tested it on OSX with this result which seems correct:
LecorbeauEtLeRenard.txt,695,0,1432659532,1433254604,1433354737,0,501,20,644,ttxtTEXT
Best regards
Jean-Marc

Re: modification date of detailed files in Android

Posted: Wed Jun 03, 2015 9:20 pm
by FourthWorld
Can you post the code you're using to obtain that?

Re: modification date of detailed files in Android

Posted: Wed Jun 03, 2015 10:08 pm
by jmburnod
I don't know if Richard's post was for me
But there is my code :

Code: Select all

on t_LesDetailsFi
   answer folder "Select a folder"
   if it = empty then exit t_LesDetailsFi
   put LesDetailsFi(it)
end t_LesDetailsFi

--•• get all detailed files
function LesDetailsFi pFol --•• les infos détaillées d'un fichier
   local tOldDefaultFolder, tDetailedFiles
   put the defaultFolder into tOldDefaultFolder
   set the defaultFolder to pFol
   put the detailed files into tDetailedFiles
   set the defaultFolder to tOldDefaultFolder
   return tDetailedFiles
end LesDetailsFi
Best regards
Jean-Marc

Re: modification date of detailed files in Android

Posted: Thu Jun 04, 2015 5:31 pm
by jacque
I get the same thing. Looks like a bug to me.

Re: modification date of detailed files in Android

Posted: Mon Jun 08, 2015 6:14 pm
by GSA_DC
Hi all.

Yes - it seems to work fine on OSX, Windows and iOS, but not in Android. Unless I'm missing something. This breaks my code badly and I don't know how to fix it.

Kind regards, Paul.

Re: modification date of detailed files in Android

Posted: Mon Jun 08, 2015 8:04 pm
by jacque
You can't fix it yourself, it needs an engine fix. Submit a bug report here: http://quality.runrev.com