Fileinfo

From Bennu Wiki
Jump to: navigation, search

Up to Global Variables



Definition

Struct Fileinfo

Fileinfo is a global variable struct, containing information about a file/directory entry, lastly returned by glob().

Members

Member name - Description
STRING path - The path to the file/directory (without the name of the file/directory).
STRING name - The name of the file/directory.
INT directory - true/false: whether the file/directory is a directory or not
INT hidden - true/false: whether the file is hidden or not
INT readonly - true/false: whether the file is read only or not
INT size - The size in bytes of the file/directory.
STRING created - The date when the file/directory was created. *. Not available in Unix/Linux**
STRING modified - The date when the file/directory was last modified. *
STRING accessed - The date when the file/directory was last accessed. *
STRING statechg - The date when the file/directory's inode was last modified. *. Only in Unix/Linux**

* - The strings created and modified are in the format: DD/MM/YYYY hh:mm.

** - In Unix/Linux the creation time is not stored. Instead it has a change time (ctime) that indicate when changes to the file or directory's inode (owner, permissions, etc.) were made.


Mod_dir
Globals Fileinfo
Functions Cd()Chdir()Dirclose()Diropen()Dirread()Glob()Mkdir()Rm()Rmdir()
Global variables
ArgcArgvAsciiCdinfoDump_typeExit_statusFadingFileinfoFocus_statusFpsFrame_timeFull_screenGraph_modeM7MouseMouse_statusOs_idRegex_regRestore_typeScale_modeScale_resolutionScale_resolution_aspectratioScale_resolution_orientationScan_codeScrollShift_statusSound_channelsSound_freqSound_modeText_flagsText_zTimerWindow_status