local-history
local-history copied to clipboard
FileExistsError: [WinError 183] Cannot create a file when that file already exists
Exception in thread Thread-102:
Traceback (most recent call last):
File "./python3.3/threading.py", line 901, in _bootstrap_inner
File "./python3.3/threading.py", line 858, in run
File "F:\SublimeText\Data\Packages\LocalHistory\LocalHistory.py", line 209, in process_history
os.makedirs(history_dir)
File "./python3.3/os.py", line 262, in makedirs
FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'F:\\SublimeText\\Data\\.sublime\\Local History\\F\\DiffMatchPatch\\cpp'
On the file 209 you have:
File: Data/Packages/LocalHistory/LocalHistory.py
207: history_dir = get_history_subdir(file_path)
208: if not os.path.isdir(history_dir):
209: os.makedirs(history_dir)
Perhaps it is meant to be os.path.isdir()
instead of os.path.exists()
.