How to get the file path and full file name
-
Have a good day,
I have a file name config_file_data302, I want to get the location of the file name to contain "congfig_file" in a given directory (avoid hidden file i.e, '.','..'). and write the same data in another file config_data303 in the same directory.
-
@tutu10 If I correctly understand, try
path = os.path.expanduser('~/Documents/your folder/your file')