Skip to content

Commit 12b4611

Browse files
ncloudiojdanburkert
authored andcommitted
Add a note for windows UNC path
1 parent 90e8880 commit 12b4611

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/environment.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ impl EnvironmentBuilder {
242242
///
243243
/// On UNIX, the database files will be opened with 644 permissions.
244244
///
245-
/// The path may not contain the null character.
245+
/// The path may not contain the null character, Windows UNC (Uniform Naming Convention)
246+
/// paths are not supported either.
246247
pub fn open(&self, path: &Path) -> Result<Environment> {
247248
self.open_with_permissions(path, 0o644)
248249
}
@@ -251,7 +252,8 @@ impl EnvironmentBuilder {
251252
///
252253
/// On Windows, the permissions will be ignored.
253254
///
254-
/// The path may not contain the null character.
255+
/// The path may not contain the null character, Windows UNC (Uniform Naming Convention)
256+
/// paths are not supported either.
255257
pub fn open_with_permissions(&self, path: &Path, mode: ffi::mode_t) -> Result<Environment> {
256258
let mut env: *mut ffi::MDB_env = ptr::null_mut();
257259
unsafe {

0 commit comments

Comments
 (0)