Struct gphoto::FileMedia
[−]
[src]
pub struct FileMedia {
// some fields omitted
}Media stored as a local file.
Methods
impl FileMedia
fn create(path: &Path) -> Result<Self>
Creates a new file that stores media.
This function creates a new file on disk. The file will start out empty.
Errors
This function returns an error if the file can not be created:
FileExistsif the file already exists.