I'm trying to automate our personal folder creation using a IDM system that runs on Python. All user shares will be created on \\\server\personal\%userID%
. The \\\server\personal and %userID%
are being passed as default_settings.home_directory
and profileid. The code I'm trying as this :
share = self.config.getID('default_settings.home_directory') + profileid
self.log.info('Share = [{0}]'.format(share))
os.makedirs(share)
In the log I have
Share = [\\server\personal\xr2829]
but it errors out with
WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect: '\\\\'