def FakeUnlink(path):
 if os.path.isdir(path):
  raise OSError(errno.ENOENT, 'Is a directory', path)
 else:
  raise OSError(errno.EPERM, 'Operation not permitted', path)

def FakeUnlink ( path ) : if os . path . isdir ( path ) : raise OSError ( errno . ENOENT , 'Is a directory' , path ) else : raise OSError ( errno . EPERM , 'Operation not permitted' , path )
fake version of os .