fix(path): correct path for env.DirIsWritable

This commit is contained in:
Jan De Dobbeleer 2022-10-13 20:20:02 +02:00 committed by Jan De Dobbeleer
parent 9a98823166
commit 2cb5f24708
2 changed files with 2 additions and 2 deletions

View file

@ -125,7 +125,7 @@ func (env *ShellEnvironment) LookWinAppPath(file string) (string, error) {
}
func (env *ShellEnvironment) DirIsWritable(path string) bool {
defer env.Trace(time.Now(), "DirIsWritable")
defer env.Trace(time.Now(), "DirIsWritable", path)
info, err := os.Stat(path)
if err != nil {
env.Log(Error, "DirIsWritable", err.Error())

View file

@ -84,7 +84,7 @@ func (pt *Path) Enabled() bool {
pt.Location = pt.pwd
}
pt.StackCount = pt.env.StackCount()
pt.Writable = pt.env.DirIsWritable(pt.pwd)
pt.Writable = pt.env.DirIsWritable(pt.env.Pwd())
return true
}