HI,ALL I am new ftputil user and I need help about something:
my prog:

>>> import tkFileDialog
>>> import ftputil
>>> name=tkFileDialog.askopenfile()
>>>ftp=ftputil.FTPHost() #Please when you want try this prog
use  your ftp server
>>> nesto1=name.name
>>> ftp.upload(nesto1,nesto1,'b')
ERROR IS:

Traceback (most recent call last):
  File "<pyshell#6>", line 1, in -toplevel-
    ftp.upload(nesto1,nesto1,'b')
  File "C:\Python24\lib\ftputil.py", line 463, in upload
    self.__copy_file(source, target, mode, open, self.file)
  File "C:\Python24\lib\ftputil.py", line 452, in
__copy_file
    target = target_open(target, target_mode)
  File "C:\Python24\lib\ftputil.py", line 282, in file
    raise ftp_error.FTPIOError("directory '%s' is not
accessible" %
FTPIOError: directory '/C:/Python24' is not accessible

                                                            
THANKS!!!!!!!!!!!!!!

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to