modification date of detailed files in Android
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
modification date of detailed files in Android
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.
-
- 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
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
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
-
- 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
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- 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
I don't know if Richard's post was for me
But there is my code :
Best regards
Jean-Marc
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
Jean-Marc
https://alternatic.ch
-
- 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
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
HyperActive Software | http://www.hyperactivesw.com
Re: modification date of detailed files in Android
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.
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.
-
- 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
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
HyperActive Software | http://www.hyperactivesw.com