package
Version:
v1.0.10
Opens a new window with list of versions in this module.
Published: Feb 18, 2024
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
FS is a file system operations wrapper.
Wrap for testing.
New returns a new file system.
Exists returns true if the file exists.
Read returns a file for reading.
RemoveAll removes a file.
Write returns a file for writing.
flag:
- os.O_CREATE|os.O_WRONLY|os.O_TRUNC for rewrite file
- os.O_CREATE|os.O_APPEND|os.O_WRONLY for append file
File is a file wrapper.
Empty returns true if the file is empty.
IsAbs returns true if the file path is absolute.
Path returns the file path.
Rel returns the relative path to the file.
String returns the string representation of the file.
Option is a file system option.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.