def name_from_path(path):
 (name, _) = os.path.splitext(os.path.basename(path))
 try:
  return fsdecode(name)
 except UnicodeError:
  return None

def name_from_path ( path ) : ( name , _ ) = os . path . splitext ( os . path . basename ( path ) ) try : return fsdecode ( name ) except UnicodeError : return None
return radicale item name from path .