From 12b4611006d5ba3bf80840faaa31a8b2e2bb6e88 Mon Sep 17 00:00:00 2001 From: Nan Jiang Date: Fri, 3 Aug 2018 17:23:34 -0400 Subject: [PATCH] Add a note for windows UNC path --- src/environment.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/environment.rs b/src/environment.rs index db31f7a..9ac51c0 100644 --- a/src/environment.rs +++ b/src/environment.rs @@ -242,7 +242,8 @@ impl EnvironmentBuilder { /// /// On UNIX, the database files will be opened with 644 permissions. /// - /// The path may not contain the null character. + /// The path may not contain the null character, Windows UNC (Uniform Naming Convention) + /// paths are not supported either. pub fn open(&self, path: &Path) -> Result { self.open_with_permissions(path, 0o644) } @@ -251,7 +252,8 @@ impl EnvironmentBuilder { /// /// On Windows, the permissions will be ignored. /// - /// The path may not contain the null character. + /// The path may not contain the null character, Windows UNC (Uniform Naming Convention) + /// paths are not supported either. pub fn open_with_permissions(&self, path: &Path, mode: ffi::mode_t) -> Result { let mut env: *mut ffi::MDB_env = ptr::null_mut(); unsafe {