Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

Commit

Permalink
test: force dokan root dirs to not have symlinks
Browse files Browse the repository at this point in the history
Issue: KBFS-3281
  • Loading branch information
strib committed Aug 3, 2018
1 parent e62daa8 commit 57d7b74
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/engine_fs_test.go
Expand Up @@ -129,11 +129,10 @@ func (e *fsEngine) GetRootDir(user User, tlfName string, t tlf.Type, expectedCan
}
path := buildTlfPath(u, tlfName, t)
var realPath string
// TODO currently we pretend that Dokan has no symbolic links
// here and end up deferencing them. This works but is not
// ideal. (See Lookup.)
if e.name == "dokan" {
realPath = path
// TODO avoid trying to dereference symlinks for dokan. This
// works but is not ideal. (See Lookup.)
realPath = buildTlfPath(u, string(preferredName), t)
} else {
realPath, err = filepath.EvalSymlinks(path)
if err != nil {
Expand Down

0 comments on commit 57d7b74

Please sign in to comment.