Hello,
I have a very strange problem, make me crazy
I’am using Spyder Ananconda on WIN 10.
when i create directory in command line console or with a script, everything things seem to be ok.
-------Console--------------
mkdir mydir
cd mydir
D:\mydir
ls
Le volume dans le lecteur D s’appelle DATA
Le num‚ro de s‚rie du volume est 2CC9-E098
R‚pertoire de D:\mydir
15/02/2023 10:54 <DIR> .
15/02/2023 10:54 <DIR> ..
0 fichier(s) 0 octets
2 R‚p(s) 1ÿ868ÿ357ÿ693ÿ440 octets libres
I test with the following script
-- coding: utf-8 --
“”"
Spyder Editor
“”"#python program to check if a directory exists
import os
path = “D:\mydir”
Check whether the specified path exists or not
isExist = os.path.exists(path)
#printing if the path exists or not
if isExist :
print(“directrory :'”+path+“’ exist”)
Console output is ok :
runfile('C:/Users/Oliv/.spyder-py3/temp.py', wdir='C:/Users/Oliv/.spyder-py3')
directrory :'D:\mydir' exist
But outside python, in windows filesystem there is no change, my new directory ‘D:\mydir’
does not exist
it’s look like, python has a kind of cached file system, which never syncing to write to windows file system
Someone could help, I missed somthing in anaconda parameters ?
thanks