Commit c76d3e2e authored by Andy Barron's avatar Andy Barron
Browse files

Add fallback impl that always returns NotSupported. (Closes #7)

parent a0bae68a
......@@ -18,6 +18,11 @@ mod platform {
mod windows;
pub use self::windows::*;
}
#[cfg(not(any(windows, unix, target_os="macos",)))]
mod platform {
mod unknown;
pub use self::unknown::*;
}
/// Creates (if necessary) and returns path to **app-specific** data
/// **subdirectory** for provided data type and subdirectory path.
......
use common::{AppDataType, AppDirsError};
use std::path::PathBuf;
pub const USE_AUTHOR: bool = false;
pub fn get_app_dir(_t: AppDataType) -> Result<PathBuf, AppDirsError> {
Err(AppDirsError::NotSupported)
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment