1 use std::fs::{File, OpenOptions};
2 use std::io;
3 use std::path::Path;
4
not_supported<T>() -> io::Result<T>5 fn not_supported<T>() -> io::Result<T> {
6 Err(io::Error::new(
7 io::ErrorKind::Other,
8 "operation not supported on this platform",
9 ))
10 }
11
create_named(_path: &Path, open_options: &mut OpenOptions) -> io::Result<File>12 pub fn create_named(_path: &Path, open_options: &mut OpenOptions) -> io::Result<File> {
13 not_supported()
14 }
15
create(_dir: &Path) -> io::Result<File>16 pub fn create(_dir: &Path) -> io::Result<File> {
17 not_supported()
18 }
19
reopen(_file: &File, _path: &Path) -> io::Result<File>20 pub fn reopen(_file: &File, _path: &Path) -> io::Result<File> {
21 not_supported()
22 }
23
persist(_old_path: &Path, _new_path: &Path, _overwrite: bool) -> io::Result<()>24 pub fn persist(_old_path: &Path, _new_path: &Path, _overwrite: bool) -> io::Result<()> {
25 not_supported()
26 }
27
keep(path: &Path) -> io::Result<()>28 pub fn keep(path: &Path) -> io::Result<()> {
29 not_supported()
30 }
31