in reply to Re^2: File Open Error = 13?
in thread File Open Error = 13?

It's a *local* permission issue. You don't have permission to overwrite file C:\temp\ftp

Replies are listed 'Best First'.
Re^4: File Open Error = 13?
by molson (Acolyte) on Oct 28, 2009 at 21:25 UTC
    How can I not have permission on my local machine (It's a windows machine if that matters)? Am I missing something with the local file syntax? I wanted it to put the file from the remote location in folder ftp which is a subfolder of temp with the same file name.
      get gets a file, not a directory.
        Right, but looking at the Perldoc info:

        get ( REMOTE_FILE [, LOCAL_FILE , WHERE] )

        Get REMOTE_FILE from the server and store locally. LOCAL_FILE may be a filename or a filehandle. If not specified, the file will be stored in the current directory with the same leafname as the remote file.

        If WHERE is given then the first WHERE bytes of the file will not be transferred, and the remaining bytes will be appended to the local file if it already exists.

        Returns LOCAL_FILE , or the generated local file name if LOCAL_FILE is not given. If an error was encountered undef is returned.

        Shouldn't it get the file from $directory and put it in c:\temp\ftp?