method

directory

directory(relative_path)
public

Remove each directory in the given path from right to left. Remove each subdirectory if it exists and is a directory.