I am writing myself a small utility to copy & rename files from my camera.
to ensure I don't overwrite an existing file I am trying to see if it already exists using os.path.exists(<filename>
but if the file name is of the format "~/<directory>/<filename>" it always returns false.
I would like to configure this a a default path so it will work for multiple users on my system.
Any Ideas as to why ~/ is not working correctly?
to ensure I don't overwrite an existing file I am trying to see if it already exists using os.path.exists(<filename>
but if the file name is of the format "~/<directory>/<filename>" it always returns false.
I would like to configure this a a default path so it will work for multiple users on my system.
Any Ideas as to why ~/ is not working correctly?