def _is_hidden_osx(path):
 file_stat = os.lstat(beets.util.syspath(path))
 if (hasattr(file_stat, 'st_flags') and hasattr(stat, 'UF_HIDDEN')):
  return bool((file_stat.st_flags & stat.UF_HIDDEN))
 else:
  return False

def _is_hidden_osx ( path ) : file_stat = os . lstat ( beets . util . syspath ( path ) ) if ( hasattr ( file_stat , 'st_flags' ) and hasattr ( stat , 'UF_HIDDEN' ) ) : return bool ( ( file_stat . st_flags & stat . UF_HIDDEN ) ) else : return False
return whether or not a file is hidden on os x .