On Wed, Aug 12, 2015 at 10:17 AM, Brahmanathaswami <bra...@hindu.org> wrote:

> can we check the modification date of a single file?
>
> use case: mobile; get date of local file resource; ping LC server check on
> mod date of the same resource, if latter is younger, then fetch it
>
> Sorry, can't help with mobile but for server can't you just run a shell
script: ls -lT <path to file>

 on my machine the output looks like this - which includes the modification
date:

-rw-r--r--@ 1 kcl  staff  8192 30 Dec 08:02:29 2014 /Users/kcl
/Documents/test.txt

'ls' (ell ess) is the standard shell List command which doesn't have to be
a directory but can be a single file. The options, a lower case letter ell,
followed by a capital tee. There may be better options which produce a
better date format that requires less parsing by LC to get something useful
to work with.

HTH
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to