Page 1 of 1

File attribute functions?

Posted: Wed Sep 16, 2009 7:54 pm
by AlexAdams
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,

Posted: Thu Sep 17, 2009 8:56 am
by Klaus
Hi Alex,

you are looking for "the long files"!
Check the docs (Revolution Dictionary) for "files".

"the long files" will give you all the info you need.


Best

Klaus

Posted: Thu Sep 17, 2009 8:56 am
by Mark
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