We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1ebe81 commit 9202ed9Copy full SHA for 9202ed9
src/core.py
@@ -54,11 +54,13 @@
54
55
windows = bool(os_name=='nt')
56
57
-def is_hidden(filepath):
58
- if windows:
59
- return bool(stat(filepath).st_file_attributes & stat_FILE_ATTRIBUTE_HIDDEN)
60
- else:
61
- return basename(abspath(filepath)).startswith('.')
+def is_hidden_win(filepath):
+ return bool(stat(filepath).st_file_attributes & stat_FILE_ATTRIBUTE_HIDDEN)
+
+def is_hidden_lin(filepath):
+ return basename(abspath(filepath)).startswith('.')
62
63
+is_hidden = is_hidden_win if windows else is_hidden_lin
64
65
if windows:
66
from subprocess import CREATE_NO_WINDOW
0 commit comments