Пример #1
0
 def record(target_dir):
     target_dir_len = len(target_dir)
     dic = {}
     save_dir = os.path.join(target_dir, "timestamp.txt")
     for root, dirs, files in os.walk(target_dir):
         for file in files:
             file_path = os.path.join(root, file)
             mtime_ns = TSHelper.get(file_path)
             dic[file_path[target_dir_len:]] = mtime_ns
     Data.save(dic, save_dir)
Пример #2
0
 def Save_TDDict(self, user):
     Data.save(self.TeamDriveDict(user), self.Path_TDDict(user))
Пример #3
0
 def save(self):
     Data.save(self._json, self._path_json)