blob: d8a55a7458e95533649cf9de8e80a646911dddb6 [file] [log] [blame]
use std::fs::{File, OpenOptions};
use std::io;
use std::path::Path;
fn not_supported<T>() -> io::Result<T> {
Err(io::Error::new(
io::ErrorKind::Other,
"operation not supported on this platform",
))
}
pub fn create_named(_path: &Path, open_options: &mut OpenOptions) -> io::Result<File> {
not_supported()
}
pub fn create(_dir: &Path) -> io::Result<File> {
not_supported()
}
pub fn reopen(_file: &File, _path: &Path) -> io::Result<File> {
not_supported()
}
pub fn persist(_old_path: &Path, _new_path: &Path, _overwrite: bool) -> io::Result<()> {
not_supported()
}
pub fn keep(path: &Path) -> io::Result<()> {
not_supported()
}