By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,846 Members | 1,857 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,846 IT Pros & Developers. It's quick & easy.

OS.remove and threads

P: n/a
Hi,

I am writing a small application which uploads files in a thread via
an ftp connection. However anytime I use the os.remove(filename)
command to delete files the thread crashes, even if the file being
removed has nothing to do with the one being uploaded. Are the OS
commands incompatible with threads? By crashing I mean the thread
stops uploading and an exception is produced. Also if the OS commands
are in any other thread, they cause that thread to crash. I have tried
using locks around the os.remove command but that also makes no
difference.

I am using: Mac OS 10.4.9 and Python 2.4.3 with Psyco.

Kind regards,

rod
Mar 20 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.