User Tools

Site Tools


Sidebar

en:objects:file_os

file_os

Object for working with local files



Working with the file location on disk
Getting information about the file
Getting file attributes
Getting access, creation, and modification times
Setting file attributes




Working with the file location on disk

copy – copy file
move – move the file
rename – rename the file
delete – delete the file



Getting information about the file

is_exist – checks the existence of the specified file
get_size – to obtain the size of the file

get_name – get file name
get_title – get the header of the file
get_ext – get file extension
get_folder – get a file folder
get_disk – get the file disk (drive letter)

get_random_file_content – get the contents of a random file in the specified folder



Getting access, creation, and modification times

get_creation_date – get the file creation date
get_modification_date – get the last modified date of the file
get_lastacess_date – get the date of last access to the file



Getting file attributes

is_normal – check that the file has the NORMAL attribute
is_readonly – check that the file has the READONLY attribute
is_hidden – check that the file has the HIDDEN attribute
is_system – check that the file has the attribute SYSTEM
is_archive – check that the file has the ARCHIVE attribute



Setting file attributes

set_normal – set the file's NORMAL attribute
set_readonly – set the file's READONLY attribute
set_hidden – set the file's HIDDEN attribute
set_system – set the file attribute SYSTEM
set_archive – set the ARCHIVE attribute for the file

en/objects/file_os.txt · Last modified: 2020/10/07 15:01 (external edit)