r not w
This commit is contained in:
		
							parent
							
								
									1217e4a83c
								
							
						
					
					
						commit
						cd39ae68b6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue