I'm building an application that will copy selected files from a local or network file system into an application controlled folder/file structure. I'll be creating data records that contain information about the file. The question is how to get that information?
sourcePath, sourceFileName, sourceFileSize, sourceFileExtension are fields that need populating. I can see parsing the path taken from an answer file dialog to get the name and extension, but are there functions available for this? And how to I get the file size and perhaps creation and last modified dates?
Thanks,
File attribute functions?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
File attribute functions?
Alex Adams
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013
Dear AlexAdams,
You can get the file path, file name and extension from the file path returned by the answer file dialog. For creation and modification dates, you can use the detailed files function. Read the docs for more info.
Best,
Mark
You can get the file path, file name and extension from the file path returned by the answer file dialog. For creation and modification dates, you can use the detailed files function. Read the docs for more info.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode