Exemple #1
0
 def isGUIDFolder(self, infile):
     check_guid = infile[4:20]
     guid = cu.convert2mixedendian(check_guid)
     try:
         guid_folder = gu.GUID[guid]
         return True
     except:
         self.unknown_guid = guid
         return False
Exemple #2
0
    def FindGUIDFolder(self, infile):
        guid_folder = ''
        guid_collection_list = gu.GUID.keys()
        check_first_guid = infile[4:20]
        first_guid = cu.convert2mixedendian(check_first_guid)
        check_second_guid = check_guid = infile[24:40]
        second_guid = cu.convert2mixedendian(check_second_guid)

        if first_guid in guid_collection_list and second_guid in guid_collection_list:
            guid_folder = gu.GUID[second_guid]

        elif first_guid in guid_collection_list and second_guid not in guid_collection_list:
            if gu.GUID[first_guid] == 'My Computer':
                guid_folder = 'Desktop'
            if gu.GUID[first_guid] == 'Shared Documents Folder (Users Files)':
                guid_folder = '%UserProfile%'
            if gu.GUID[first_guid] == 'OneDrive - 고려대학교':
                guid_folder = gu.GUID[first_guid]

        if first_guid not in guid_collection_list:
            #print("GUID Update 필요 " + first_guid)
            guid_folder = "unknown_guid : " + str(first_guid)

        return guid_folder