def starts_with_path(path, prefix):
 if sabnzbd.WIN32:
  return clip_path(path).lower().startswith(prefix.lower())
 elif sabnzbd.DARWIN:
  return path.lower().startswith(prefix.lower())
 else:
  return path.startswith(prefix)

def starts_with_path ( path , prefix ) : if sabnzbd . WIN32 : return clip_path ( path ) . lower ( ) . startswith ( prefix . lower ( ) ) elif sabnzbd . DARWIN : return path . lower ( ) . startswith ( prefix . lower ( ) ) else : return path . startswith ( prefix )
return true if path starts with prefix .