Commit 81b4d929 authored by Jason R. Coombs's avatar Jason R. Coombs

Decorate hide_file to only run on Windows.

parent ae6eb313
import platform
import ctypes.wintypes
def windows_only(func):
if platform.system() != 'Windows':
return lambda *args, **kwargs: None
return func
@windows_only
def hide_file(path):
"""
Set the hidden attribute on a file or directory.
......
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