Jul-14-2017, 04:28 PM
I try the following to check if a file exists but when run them, os is highlighted and popup 'invalid syntax' window. not sure why. please advice. thanks.
I use python 3.6.1 on windows 10.
import os
if os.path.exists('test.cvs'):
if os.path.isfile('test.cvs'):
if os.path.islink('test.cvs'):
I use python 3.6.1 on windows 10.
import os
if os.path.exists('test.cvs'):
if os.path.isfile('test.cvs'):
if os.path.islink('test.cvs'):