prescan_directory

ltdconveyor.s3.presignedpost.prescan_directory(base_dir, _current_dir=None)

Make a list of all directories in a site, including the root directory.

This function is used to the LTD Keeper API what presigned POST URLs to create for a build (see ltdconveyor.keeper.register_build).

Parmameters

base_dirpathlib.Path

The (local) root directory of a web site.

returns:

dirnames – A list of directory names, relative to the root directory. The root directory is represented by "/". All directory names end with "/".

rtype:

list

param base_dir:

type base_dir:

Path

param _current_dir:

type _current_dir:

Optional[Path], default: None