Fixed bug-69 - FullPathOnFS() was wrong for first dir in a path

This commit is contained in:
2021-10-02 14:49:07 +10:00
parent 9f2165c04d
commit b135f5681d

View File

@@ -97,10 +97,10 @@ class Entry(db.Model):
s=self.in_dir.in_path.path_prefix + '/'
if len(self.in_dir.rel_path) > 0:
s += self.in_dir.rel_path + '/'
s += self.name
# this occurs when we have a dir that is the root of a path
else:
s=self.dir_details.in_path.path_prefix+'/'
s += self.name
s=self.dir_details.in_path.path_prefix
return s
def __repr__(self):