[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Create Temporary file with EXTENSION
- From: Sravan Kumar Reddy Javaji <sravan2j@...>
- Date: Tue, 21 Apr 2015 22:58:49 -0700
Thanks for your reply.
Actually, os.tmpname() creates a file with that name. So, in that case if I try to create the directory i.e., os.tmpname() as the file already exists with the same name of file, I think ubuntu mkdir command works.
Probably after calling os.tmpname(), we may have to call os.remove to delete the created file and we may have to create the directory. But is it really a reliable solution?