this function isn't used anymore, legacy of old file manager

This commit is contained in:
Rob Weber 2019-08-19 13:07:40 -05:00
parent 913090637c
commit 4108f333e2

View File

@ -422,23 +422,6 @@ class XbmcBackup:
self.filesTotal = self.filesTotal + fileManager.size() self.filesTotal = self.filesTotal + fileManager.size()
return {"name":folder_name,"source":root_path,"dest":self.remote_vfs.root_path,"files":fileManager.getFiles()} return {"name":folder_name,"source":root_path,"dest":self.remote_vfs.root_path,"files":fileManager.getFiles()}
def _createCRC(self,string):
#create hash from string
string = string.lower()
bytes = bytearray(string.encode())
crc = 0xffffffff;
for b in bytes:
crc = crc ^ (b << 24)
for i in range(8):
if (crc & 0x80000000 ):
crc = (crc << 1) ^ 0x04C11DB7
else:
crc = crc << 1;
crc = crc & 0xFFFFFFFF
return '%08x' % crc
def _dateFormat(self,dirName): def _dateFormat(self,dirName):
#create date_time object from foldername YYYYMMDDHHmm #create date_time object from foldername YYYYMMDDHHmm