ftputil upload error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Croteam

    #1

    ftputil upload error

    Hello,

    I have one problem about ftputil file upload.Here is my short example:

    from ftputil import FTPHost
    import tkFileDialog
    import os
    from Tkinter import Tk

    ftp=FTPHost('my server','userna me','password')

    forupload=tkFil eDialog.askopen file(parent=roo t)

    file=forupload. name




    ## I was choose file C:/Documents and Settings/VEKI/My
    Documents/internet/popravak.txt ##



    ftp.upload(file ,os.path.basena me(file))

    THEN I GAIN ERROR:
    Traceback (most recent call last):
    File "<pyshell#4 8>", line 1, in -toplevel-
    ftp.upload(file ,os.path.basena me(file),'b')
    File "C:\Python24\li b\ftputil.py", line 417, in upload
    self.__copy_fil e(source, target, mode, open, self.file)
    File "C:\Python24\li b\ftputil.py", line 406, in __copy_file
    target = target_open(tar get, target_mode)
    File "C:\Python24\li b\ftputil.py", line 245, in file
    host._file._ope n(effective_fil e, mode)
    File "C:\Python24\li b\ftp_file.py", line 115, in _open
    self._conn = ftp_error._try_ with_ioerror(
    File "C:\Python24\li b\ftp_error.py" , line 101, in _try_with_ioerr or
    raise FTPIOError(ftp_ error)
    FTPIOError: 550 popravak.txt: Access is denied.
    Debugging info: ftputil 2.1, Python 2.4.2 (win32)



    Regards,

    Vedran

  • Mark

    #2
    Re: ftputil upload error

    On Sat, 02 Dec 2006 04:03:53 -0800, Croteam wrote:
    FTPIOError: 550 popravak.txt: Access is denied.
    Seems pretty self-explanatory to me.

    M

    Comment

    Working...