How to get the file path and full file name
tutu10 last edited by
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.
cvp last edited by cvp
@tutu10 If I correctly understand, try
path = os.path.expanduser('~/Documents/your folder/your file')