I am trying to find the file type using file with subprocess
cwdir = os.getcwd()
Fileinput=cwdir+"/"+'testfile.zip'
print "Current Directory %s"% cwdir
Fileformat=subprocess.Popen('file' + Fileinput)
I get OSError: [Errno 2] No such file or directory. I verified and the file does exist in the path. Thanks for any help with this.