projects
/
osm
/
common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f71fcff
)
fix fslocal file_exists
12/8612/1
author
tierno
<alfonso.tiernosepulveda@telefonica.com>
Wed, 12 Feb 2020 10:46:51 +0000
(10:46 +0000)
committer
tierno
<alfonso.tiernosepulveda@telefonica.com>
Wed, 12 Feb 2020 10:46:55 +0000
(10:46 +0000)
Change-Id: I871a4912741a0542f3b70d1fdb0d6ca118aa0da3
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_common/fslocal.py
patch
|
blob
|
history
diff --git
a/osm_common/fslocal.py
b/osm_common/fslocal.py
index
7794754
..
b90b25e
100644
(file)
--- a/
osm_common/fslocal.py
+++ b/
osm_common/fslocal.py
@@
-93,6
+93,8
@@
class FsLocal(FsBase):
else:
f = "/".join(storage)
if os.path.exists(self.path + f):
+ if not mode:
+ return True
if mode == "file" and os.path.isfile(self.path + f):
return True
if mode == "dir" and os.path.isdir(self.path + f):