GeoEco.DataManagement.Directories.Directory.CreateSubdirectory

classmethod Directory.CreateSubdirectory(parentDirectory, subdirectoryName)

Creates a subdirectory within a parent directory.

Parameters:
  • parentDirectory (str) – Directory in which the subdirectory should be created. Minimum length꞉ 1. Must exist.

  • subdirectoryName (str) – Name of the subdirectory to create. You may specify a simple directory name, such as MyDir, or a relative path that includes subdirectories, such as FirstLevel\SecondLevel\MyDir. Whatever you specify will be appended to the parent directory and all missing directories in the complete path will be created. Minimum length꞉ 1.

Returns:

Path of the newly-created subdirectory.

Return type:

str