Ejemplo n.º 1
0
 def is_tdir_locked(path):
     try:
         with windows_open(os.path.join(path, TDIR_LOCK)):
             pass
     except OSError:
         return True
     return False
Ejemplo n.º 2
0
 def is_tdir_locked(path):
     try:
         with windows_open(os.path.join(path, TDIR_LOCK)):
             pass
     except EnvironmentError:
         return True
     return False
Ejemplo n.º 3
0
 def lock_tdir(path):
     return windows_open(os.path.join(path, TDIR_LOCK))
Ejemplo n.º 4
0
 def lock_tdir(path):
     return windows_open(os.path.join(path, TDIR_LOCK))