命令

函数

capture(command, cwd=None, command_input=None)[source]
参数:
  • command (str)

  • cwd (StrOrBytesPath | None)

  • command_input (str | None)

返回类型:

tuple[str, str, int]

get_dir_layout(dirpath)[source]

获取目录及其所有子目录中所有文件的相对于dirpath的路径列表(递归)。

参数:

dirpath (Path)

返回类型:

Generator[str, None, None]

get_video_metadata(path_to_video)[source]
参数:

path_to_video (str | PathLike)

返回类型:

VideoMetadata