fs.accessΒΆ
test a file for read, write or both access
Arguments:
file The file path to testmode The access mode, "r" for read access, "w" for write access or "rw" for read and write access
Return:
result true if the file can be accessed
test a file for read, write or both access