File Information

File name and size information. You can obtain a list of values of type FileInfo using the LIST FILES command.

structure FileInfo
Members
Suffix Type Description
NAME string Name of the file including extension
FILETYPE string Type of the file
SIZE integer (bytes) Size of the file
FileInfo:NAME
Access:Get only
Type:string

name of the file, including its file extension.

FileInfo:FILETYPE
Access:Get only
Type:string

Type of the file as a string. Can be one of the following:

ASCII
A file containing ASCII text, like the result of a LOG command.
KERBOSCRIPT
(unimplemented) A type of ASCII file containing Kerboscript ascii code. At the moment this type does not ever get returned. You will always get files of type ASCII instead.
KSM
A type of file containing KerboMachineLanguage compiled code, that was created from the COMPILE command.
UNKNOWN
Any other type of file.
FileInfo:SIZE
Access:Get only
Type:scalar

size of the file, in bytes.