-
Notifications
You must be signed in to change notification settings - Fork 7
Files
It returns 0
if file is regular file otherwise it returns 1
.
Precondition : it requires the path of the file
Example : files is_file /home/mark/.bashrc
It returns 0
if path is directory otherwise it returns 1
.
Precondition : it requires the path of the dir
Example : files is_dir /home
It returns 0
if path exists otherwise it returns 1
.
Precondition : it requires the path of the file
Example : files exist /home
Note : The path can be any file (node, socket, regular file, binary, or dictionary)
It returns 0
if file is symlink otherwise it returns 1
.
Precondition : it requires the path of the file
Example : files is_symlink /home/mark/lnk
It returns 0
if file is socket otherwise it returns 1
.
Precondition : it requires the path of the file
Example : files is_socket snapd.socket
It returns 0
if file is readable otherwise it returns 1
.
Precondition : it requires the path of the file
Example : files is_file /home/mark/.bashrc
It returns 0
if file is writable otherwise it returns 1
.
Precondition : it requires the path of the file
Example : files is_file /home/mark/.bashrc
It returns 0
if file is executable otherwise it returns 1
.
Precondition : it requires the path of the file
Example : files is_file /home/mark/.bashrc