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