Hide Desktop Database from readers

(Not sure of the wisdom of this move)
This commit is contained in:
Elliot Nunn 2018-11-03 20:29:00 +08:00
parent cd433459d0
commit 2a7fc8a8c4
1 changed files with 4 additions and 0 deletions

View File

@ -243,6 +243,10 @@ class Volume(directory.AbstractFolder):
self.update(cnids[2])
self.pop('Desktop', None)
self.pop('Desktop DB', None)
self.pop('Desktop DF', None)
def write(self, size=800*1024, align=512, desktopdb=True):
if align < 512 or align % 512:
raise ValueError('align must be multiple of 512')