Fixed bug-69 - FullPathOnFS() was wrong for first dir in a path
This commit is contained in:
4
files.py
4
files.py
@@ -97,10 +97,10 @@ class Entry(db.Model):
|
|||||||
s=self.in_dir.in_path.path_prefix + '/'
|
s=self.in_dir.in_path.path_prefix + '/'
|
||||||
if len(self.in_dir.rel_path) > 0:
|
if len(self.in_dir.rel_path) > 0:
|
||||||
s += self.in_dir.rel_path + '/'
|
s += self.in_dir.rel_path + '/'
|
||||||
|
s += self.name
|
||||||
# this occurs when we have a dir that is the root of a path
|
# this occurs when we have a dir that is the root of a path
|
||||||
else:
|
else:
|
||||||
s=self.dir_details.in_path.path_prefix+'/'
|
s=self.dir_details.in_path.path_prefix
|
||||||
s += self.name
|
|
||||||
return s
|
return s
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user