fs.accessΒΆ

boolean result fs.access ( string file , string mode )

test a file for read, write or both access

Arguments:

  • file The file path to test
  • mode 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