Skip to content

Latest commit

 

History

History
113 lines (72 loc) · 1.56 KB

File.md

File metadata and controls

113 lines (72 loc) · 1.56 KB

File

File_isDir

check if the given path is a directory

  • path <string>
File_isDir "~/Desktop"

File_isEmpty

check if the given path is a empty file

  • path <string>
File_isEmpty "foo.sh"

File_isExecutable

check if the given path is executable

  • path <string>
File_isExecutable "foo.sh"

File_isExist

check if the given path exists

  • path <string>
File_isExist "foo.sh"

File_isFile

check if the given path is a file

  • path <string>
File_isFile "foo.sh"

File_isReadable

check if the given path is readable

  • path <string>
File_isReadable "foo.sh"

File_isSame

check if the given paths are the same file

  • path1 <string>
  • path2 <string>
File_isSame "foo.sh" "~/Desktop/foo.sh"

File_isSymlink

check if the given path is a symbolic link

  • path <string>
File_isSymlink "foo.sh"

File_isWritable

check if the given path is writable

  • path <string>
File_isWritable "foo.sh"

File_notEmpty

check if the given path is not a empty file

  • path <string>
File_notEmpty "foo.sh"