summaryrefslogtreecommitdiffstats
<(exists): add an extra arg to really test if the file exists (without testing
if the file + suffix exists).
Diffstat (limited to 'share')
ModeNameSize
-rw-r--r--.gitignore20logstatsplain
-rw-r--r--
-rw-r--r--share/ConfigFile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/ConfigFile.py b/share/ConfigFile.py
index 656c48a..b041169 100644
--- a/share/ConfigFile.py
+++ b/share/ConfigFile.py
@@ -119,8 +119,8 @@ class ConfigFile:
self.sym_link = link
return self
- def exists(self):
- return os.path.exists(self.path) or (self.suffix and os.path.exists(self.path + self.suffix))
+ def exists(self, really=0):
+ return os.path.exists(self.path) or (not really and self.suffix and os.path.exists(self.path + self.suffix))
def move(self, suffix):
self.suffix = suffix
'ls-dir' href='/software/drakx/tree/advertising?h=18.24&id=9cd10d1bda5bc1a1d309559c7f7354d624bf2080'>advertising747logstatsplain d---------docs708logstatsplain d---------images275logstatsplain d---------kernel117logstatsplain d---------mdk-stage12557logstatsplain d---------perl-install2074logstatsplain d---------rescue880logstatsplain d---------tools907logstatsplain