repository: Base: add comment about lying variable name self.uiddir
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
2789ad26bf
commit
14de280585
@ -39,6 +39,7 @@ class BaseRepository(CustomConfig.ConfigHelperMixin, object):
|
|||||||
self.mapdir = os.path.join(self.uiddir, 'UIDMapping')
|
self.mapdir = os.path.join(self.uiddir, 'UIDMapping')
|
||||||
if not os.path.exists(self.mapdir):
|
if not os.path.exists(self.mapdir):
|
||||||
os.mkdir(self.mapdir, 0o700)
|
os.mkdir(self.mapdir, 0o700)
|
||||||
|
# FIXME: self.uiddir variable name is lying about itself.
|
||||||
self.uiddir = os.path.join(self.uiddir, 'FolderValidity')
|
self.uiddir = os.path.join(self.uiddir, 'FolderValidity')
|
||||||
if not os.path.exists(self.uiddir):
|
if not os.path.exists(self.uiddir):
|
||||||
os.mkdir(self.uiddir, 0o700)
|
os.mkdir(self.uiddir, 0o700)
|
||||||
|
Loading…
Reference in New Issue
Block a user