Struct filesystem::OsFileSystem [] [src]

pub struct OsFileSystem {}

An implementation of FileSystem that interacts with the actual operating system's file system.

This is primarily a wrapper for fs methods.

Methods

impl OsFileSystem
[src]

[src]

Trait Implementations

impl Clone for OsFileSystem
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for OsFileSystem
[src]

[src]

Formats the value using the given formatter.

impl Default for OsFileSystem
[src]

[src]

Returns the "default value" for a type. Read more

impl FileSystem for OsFileSystem
[src]

[src]

Returns the current working directory. This is based on [std::env::current_dir]. Read more

[src]

Updates the current working directory. This is based on [std::env::set_current_dir]. Read more

[src]

Determines whether the path exists and points to a directory.

[src]

Determines whether the path exists and points to a file.

[src]

Creates a new directory. This is based on [std::fs::create_dir]. Read more

[src]

Recursively creates a directory and any missing parents. This is based on [std::fs::create_dir]. Read more

[src]

Removes an empty directory. This is based on [std::fs::remove_dir]. Read more

[src]

Removes a directory and any child files or directories. This is based on [std::fs::remove_dir_all]. Read more

[src]

Returns an iterator over the entries in a directory. This is based on [std::fs::read_dir]. Read more

[src]

Writes buf to a new or existing file at buf. This will overwrite any contents that already exist. Read more

[src]

Writes buf to an existing file at buf. This will overwrite any contents that already exist. Read more

[src]

Returns the contents of path. Read more

[src]

Returns the contents of path as a string. Read more

[src]

Writes buf to a new file at path. Read more

[src]

Removes the file at path. This is based on [std::fs::remove_file]. Read more

[src]

Copies the file at path from to the path to. This is based on [std::fs::copy]. Read more

[src]

Renames a file or directory. If both from and to are files, to will be replaced. Based on [std::fs::rename]. Read more

[src]

Returns true if path is a readonly file. Read more

[src]

Sets or unsets the readonly flag of path. Read more

impl UnixFileSystem for OsFileSystem
[src]

[src]

Returns the current mode bits of path. Read more

[src]

Sets the mode bits of path. Read more

impl TempFileSystem for OsFileSystem
[src]

[src]

Creates a new temporary directory.