References
| ensure_dir/1 | ensures that the directory name required to create D exists. |
| file_delete_all/1 | Remove all files of the target. |
| file_get_canonicalized_path/1 | Canonicalize by following every symlink in every component of the given name. |
| file_get_mount_path/1 | Retrieve file mount path(s). |
| file_get_remain_disk/1 | Retrieve remain disk capacity of the target. |
| file_get_total_size/1 | Retrieve total of the file size. |
| file_touch/1 | Touch a file. |
| file_unconsult/2 | Unconsult the file. |
| pread/3 | Erlang file:pread/3's wrapper function <http://www.erlang.org/doc/man/file.html#pread-3>. |
ensures that the directory name required to create D exists
Fork the code from https://github.com/erlang/otp/blob/OTP-20.1.2/lib/stdlib/src/filelib.erl#L220-L251 To fix https://github.com/leo-project/leofs/issues/878file_delete_all(FilePath) -> ok | {error, any()}
FilePath = string()
Remove all files of the target
file_get_canonicalized_path(FilePath) -> {ok, string()} | {error, any()}
FilePath = string()
Canonicalize by following every symlink in every component of the given name
file_get_mount_path(FilePath) -> ok | {error, any()}
FilePath = string()
Retrieve file mount path(s)
file_get_remain_disk(Params) -> ok | {error, any()}
Params = {FilePath::string(), SizeKB::non_neg_integer(), Rate::non_neg_integer()}
Retrieve remain disk capacity of the target
file_get_total_size(Path) -> ok | {error, any()}
Path = string()
Retrieve total of the file size
file_touch(FilePath) -> ok | {error, any}
FilePath = string()
Touch a file
file_unconsult(FilePath, Term) -> ok | {error, any()}
FilePath = string()Term = any()
Unconsult the file
pread(IoDevice, Location, Number) -> {ok, Data} | eof | {error, Reason}
IoDevice = file:io_device()Data = string() | binary()Location = file:location()Number = non_neg_integer()Reason = any() | badarg | terminated
Erlang file:pread/3's wrapper function <http://www.erlang.org/doc/man/file.html#pread-3>
Generated by EDoc