Logo name
Edit Discussion
> File Info

File Info is a member of the OpenG File Tools (oglib_file) library.

Image:File Info.png

Description

This function either returns extended file information or changes that information for a file. For setting a particular value to something else you should first retrieve the entire information, change the value in question and write it back to disk. Be careful with this as setting wrong values for this could make the files inaccessible or even destroy it.

Some of the information can be also read and modified by LabVIEW icons, others not. Following information is available in the cluster:

type: this is the Macintosh file type. This is actually also valid for the standard LabVIEW files on non-Macintosh platforms as LabVIEW stores its files in a similar fashion as what is used for Macintosh files. This value is the same as the "type" parameter from the Type & Creator function.

type: this is the Macintosh file creator. This is actually also valid for the standard LabVIEW files on non-Macintosh platforms as LabVIEW stores its files in a similar fashion as what is used for Macintosh files. In this case the creator is always "LBVW". This value is the same as the "creator" parameter from the Type & Creator function.

permissions: This is the file access permission and is the same as is read or set with the Access Rights function.

data size: This is the same value as returned by the "File/Directory Info" function as well as it can be accessed by the EOF function.

res size: This is the size of the Macintosh resource fork. On non Macintosh systems this value is always 0.

creation date: The creation date of the file as far as the OS file system supports that. Changing this value is under normal circumstances probably not a good idea. For instance making this date to be later than the modification date could cause certain issues on some systems.

modification date: This value is the same as returned by the "File/Directory Info" LabVIEW node.

bFolder: If non-zero indicates that the path points to a directory. This value is the same as returned by the "File/Directory Info" function.

bInvisible: If non-zero indicates if the file has the OS dependant hidden flag set.

location: System specific desktop geographical location (on Mac only)

Documentation

Download

Edit Discussion
This page was last modified 13:36, 11 May 2008.  This page has been accessed 480 times.  Content is available under Attribution 3.0 Privacy policy  About OpenG  Disclaimers 
Attribution 3.0
IpbWikiMediaWiki