X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_common%2Ffslocal.py;h=b90b25e7c07f0173c6f9269d97646feb49f7827b;hb=2c9794c5dc468baabe99b2f934e4bdb32e98ce54;hp=7794754f966e96c03e288bd0c98896a0e8addd12;hpb=788b9d66ded6d5b8a5fe13befdcdf1aede6bbfc0;p=osm%2Fcommon.git diff --git a/osm_common/fslocal.py b/osm_common/fslocal.py index 7794754..b90b25e 100644 --- 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):