modification date of detailed files in Android

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
GSA_DC
Posts: 35
Joined: Thu Nov 27, 2014 2:07 pm

modification date of detailed files in Android

Post by GSA_DC » 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.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: modification date of detailed files in Android

Post by jmburnod » Wed Jun 03, 2015 8:47 pm

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
https://alternatic.ch

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: modification date of detailed files in Android

Post by FourthWorld » Wed Jun 03, 2015 9:20 pm

Can you post the code you're using to obtain that?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: modification date of detailed files in Android

Post by jmburnod » Wed Jun 03, 2015 10:08 pm

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
https://alternatic.ch

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: modification date of detailed files in Android

Post by jacque » Thu Jun 04, 2015 5:31 pm

I get the same thing. Looks like a bug to me.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

GSA_DC
Posts: 35
Joined: Thu Nov 27, 2014 2:07 pm

Re: modification date of detailed files in Android

Post by GSA_DC » Mon Jun 08, 2015 6:14 pm

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.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: modification date of detailed files in Android

Post by jacque » Mon Jun 08, 2015 8:04 pm

You can't fix it yourself, it needs an engine fix. Submit a bug report here: http://quality.runrev.com
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Android Deployment”