code: def get_share_dirname(url):
      '''从url中提取出当前的目录'''
      dirname_match = re.search('(dir|path)=([^&]+)',
                                encoder.decode_uri_component(url))
      if dirname_match:
          return dirname_match.group(2)
      else:
          return Nonf get_share_dirname(url):
      '''从url中提取出当前的目录'''
      dirname_match = re.search('(dir|path)=([^&]+)',
                                encoder.decode_uri_component(url))
      if dirname_match:
          return dirname_match.group(2)
      else:
          return None
docs: 从url中提取出当前的目录