r not w
This commit is contained in:
parent
1217e4a83c
commit
cd39ae68b6
@ -38,7 +38,7 @@ class StorageCounter:
|
|||||||
'''Return how much disk space we're using (according to record)'''
|
'''Return how much disk space we're using (according to record)'''
|
||||||
retData = 0
|
retData = 0
|
||||||
try:
|
try:
|
||||||
with open(self.dataFile, 'w') as dataFile:
|
with open(self.dataFile, 'r') as dataFile:
|
||||||
retData = int(dataFile.read())
|
retData = int(dataFile.read())
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user