the paths
the name with the extension
the default content of the file written when you call .create()
the directory of the file
the extension of the file
the name of the file without the extension
the path of the file
the root of the file
a function to validate the file content
the fs watcher
The timestamp indicating when the file have been created
The timestamp indicating the last time this file was accessed.
The timestamp indicating the last time this file status was changed.
The timestamp indicating the last time this file was modified.
the size of the file
append some data to the file
data to append
changes the mode of the file
the mode
closes the file
copy the file to the destination
the destination to copy the file to
rename the file to another name
resolves the destination path based the file path
creates the file
delete the file
returns true if the file exists
splits the file content and get the item with index passed
the splitter string
the index
splits the file content and get the items between start and end (excluding end)
the splitter
the start index
the end index
reads the file as json
Creates hard link newPath pointing to file's path
gets the stats of the file
moves the file to destination
the destination to copy the file to
rename the file to another name
resolves the destination path based the file path
opens the file
overwrites the file by splitting it's content with the splitter passing the split data into a callback and replacing it with the result
the string to split the file by
the callback
reads the file
Specifies where to begin reading from in the file
The number of bytes to read
The buffer that the data will be written to
The position in buffer to write the data to
rename the file
the newName
split the file content into an array
the string to split by
A value used to limit the number of elements returned in the array
gets the stats of the file
Creates soft link newPath pointing to file's path
reads file as text
Specifies where to begin reading from in the file
The number of bytes to read
clears file starting from index offset (0 by default)
index where to start deleting
stops watching the file
safer from validate (cause it will return true if there's no "validator")
validates the file using the validator
write some data into the file
the data to write
Specifies where to begin writing to the file
The number of bytes to write
The position in buffer to start writing from it to the file
create a file in the tmp directory with a random name very useful for testing
Generated using TypeDoc
the File Class is used to help you work with files