fix could-not-access error

This commit is contained in:
Jesse Duffield
2022-11-11 12:16:38 +11:00
committed by Andrew Hynes
parent ea09686770
commit 97ced9e14f
22 changed files with 80 additions and 1 deletions

View File

@@ -42,6 +42,10 @@ func (self *FileNode) GetIsTracked() bool {
return self.SomeFile(func(file *models.File) bool { return file.Tracked })
}
func (self *FileNode) GetIsFile() bool {
return self.IsFile()
}
func (self *FileNode) GetPreviousPath() string {
if self.File == nil {
return ""