is a symbolic representation of a location in the local file system.
- In File["path"], "path" specifies a possible path on the local file system. The path does not need to actually exist or refer to a file.
- File["path"] can use both absolute and relative paths.
- Information for a File may include the following properties:
"CreationDate" date when the file was created "LastAccessDate" time when the file was last accessed "LastModificationDate" time when the contents of the file were last modified "LastChangeDate" time when a file attribute was last changed "FileType" file type "ByteCount" file size in bytes "RawByteCount" how much space in bytes the file uses on disk "BlockCount" number of blocks the file uses "BlockSize" size of one block "FileAssociation" program associated with the file "UnixPermissionsCode" permissions in numeric form (e.g. 2774) "UnixPermissionsString" permissions in string form (e.g. "rwxrwsr--") "Device" name of the device on which the file lives. "UID" user ID "GID" group ID "SID" user's Security Identifier "OwnerName" owner of the file
Examplesopen allclose all
Basic Examples (3)
A File object need not point to an existing path:
Wolfram Research (2016), File, Wolfram Language function, https://reference.wolfram.com/language/ref/File.html (updated 2019).
Wolfram Language. 2016. "File." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/File.html.
Wolfram Language. (2016). File. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/File.html