pkglts.small_tools module

pkglts.small_tools.ERROR_INVALID_NAME = 123

Windows-specific error code indicating an invalid pathname.

See also

https

//msdn.microsoft.com/en-us/library/windows/desktop/ms681382%28v=vs.85%29.aspx Official listing of all such codes.

pkglts.small_tools.ensure_created(dname)[source]
pkglts.small_tools.ensure_path(pth)[source]
pkglts.small_tools.is_pathname_valid(pathname)[source]

Check pathname validity

True if the passed pathname is a valid pathname for the current OS; False otherwise.

Parameters:

pathname (str) – does not need to exists

Returns:

(bool)

pkglts.small_tools.rmdir(dname)[source]