Commit 6bfff623 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

hide cache path on windows

parent bfe16613
......@@ -16,6 +16,7 @@
import os
import threading
import logging
import ctypes
from functools import wraps
......@@ -78,6 +79,10 @@ def check_encoding():
% encoding)
def win_hide_file(path):
ctypes.windll.kernel32.SetFileAttributesW(path, 2)
class SyncerSettings():
def __init__(self, auth_url, auth_token, container, local_root_path,
*args, **kwargs):
......@@ -177,6 +182,8 @@ class SyncerSettings():
def create_local_dirs(self):
self.create_dir(self.local_root_path)
self.create_dir(self.cache_path)
if utils.iswin():
win_hide_file(self.cache_path)
self.create_dir(self.cache_hide_path)
self.create_dir(self.cache_stage_path)
self.create_dir(self.cache_fetch_path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment