Postgresql Python Create Directory Path