pyslk.mkdir

Contents

pyslk.mkdir#

pyslk.mkdir(gns_path: str | Path) int#

Create a directory

If the directory already exists, FileExistsError is raised. If a parent directory in the path does not exist, FileNotFoundError is raised.

Parameters:

gns_path (str or Path) – gns path to create

Returns:

namespace/resource id of the created namespace

Return type:

int