Detailed File Information for One File

Eller, Roger roger.e.eller at sealedair.com
Fri Apr 27 07:46:18 EDT 2018


If you have the path and filename, you could create a subfolder "temp" just for the purpose of reading the details of a single file.


## THIS IS NOT A SCRIPT -- LOL

move the file into "temp".

get the detailed fiiles.

move the file from "temp" back to where you got it from.


~Roger


________________________________
From: use-livecode <use-livecode-bounces at lists.runrev.com> on behalf of Richard Gaskin via use-livecode <use-livecode at lists.runrev.com>
Sent: Thursday, April 26, 2018 7:25:50 PM
To: use-livecode at lists.runrev.com
Cc: Richard Gaskin
Subject: Re: Detailed File Information for One File

Bob Sneidar wrote:

 > I can't find anything on the forums, which is par for the course, evwn
 > though I know it's been discussed. Is there an LC way to get details
 > about a file without shelling out to do it? I need to get the last
 > modified date of a file so I can check to see if I need to update the
 > version in a database when importing it. I would very much NOT like
 > having to get the detailed files of a folder and filter for the file I
 > am looking for as I already have a path to the actual file, and a
 > folder may contain a lot of files.

I do not believe this has been implemented yet:
https://quality.livecode.com/show_bug.cgi?id=20384

That said, wasteful as "the detailed files" is it's probably more
efficient in most cases than the overhead of initing a shell session.
I've had good performance even in directories with tens of thousands of
files.

--
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com

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



More information about the use-livecode mailing list