Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
agkyra
Commits
6bfff623
Commit
6bfff623
authored
Jul 30, 2015
by
Giorgos Korfiatis
Browse files
hide cache path on windows
parent
bfe16613
Changes
1
Hide whitespace changes
Inline
Side-by-side
agkyra/syncer/setup.py
View file @
6bfff623
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment