summaryrefslogtreecommitdiffstats
path: root/vendor/filetime/src/wasm.rs
blob: 4a7a5bbb790e466cf8375b664e48135ec8299fb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
use crate::FileTime;
use std::fs::{self, File};
use std::io;
use std::path::Path;

pub fn set_file_times(_p: &Path, _atime: FileTime, _mtime: FileTime) -> io::Result<()> {
    Err(io::Error::new(io::ErrorKind::Other, "Wasm not implemented"))
}

pub fn set_symlink_file_times(_p: &Path, _atime: FileTime, _mtime: FileTime) -> io::Result<()> {
    Err(io::Error::new(io::ErrorKind::Other, "Wasm not implemented"))
}

pub fn set_file_mtime(_p: &Path, _mtime: FileTime) -> io::Result<()> {
    Err(io::Error::new(io::ErrorKind::Other, "Wasm not implemented"))
}

pub fn set_file_atime(_p: &Path, _atime: FileTime) -> io::Result<()> {
    Err(io::Error::new(io::ErrorKind::Other, "Wasm not implemented"))
}

pub fn from_last_modification_time(_meta: &fs::Metadata) -> FileTime {
    unimplemented!()
}

pub fn from_last_access_time(_meta: &fs::Metadata) -> FileTime {
    unimplemented!()
}

pub fn from_creation_time(_meta: &fs::Metadata) -> Option<FileTime> {
    unimplemented!()
}

pub fn set_file_handle_times(
    _f: &File,
    _atime: Option<FileTime>,
    _mtime: Option<FileTime>,
) -> io::Result<()> {
    Err(io::Error::new(io::ErrorKind::Other, "Wasm not implemented"))
}