mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
commit
3c67f84437
2
autojump
2
autojump
@ -53,7 +53,7 @@ def save(path_dict, dic_file):
|
|||||||
# Otherwise, fail quietly
|
# Otherwise, fail quietly
|
||||||
if (not os.path.exists(dic_file)) or os.getuid() == os.stat(dic_file)[4]:
|
if (not os.path.exists(dic_file)) or os.getuid() == os.stat(dic_file)[4]:
|
||||||
temp = NamedTemporaryFile(dir=CONFIG_DIR, delete=False)
|
temp = NamedTemporaryFile(dir=CONFIG_DIR, delete=False)
|
||||||
pickle.dump(path_dict, temp, -1)
|
pickle.dump(path_dict, temp, 2)
|
||||||
temp.flush()
|
temp.flush()
|
||||||
os.fsync(temp)
|
os.fsync(temp)
|
||||||
temp.close()
|
temp.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user