Your best friend for file transfer.

Error -30006 connecting to a directory (8 posts)
- Started 8 years ago by Jim Brandt
- Latest reply 8 years ago from Jim Brandt
-
Jim Brandt Member
-
Jim Matthews Administrator
Hi,
One thing to try is changing Dir to just "WFLX-HD". If that doesn't work I'd be curious to see the contents of the Fetch Transcript window after you get the error. Choose "Fetch Transcript" from the Window menu to open that window.
Thanks,
Jim Matthews
Fetch Softworks -
Jim Brandt Member
Sorry to take so long getting back to you. We has a server crisis at work yesterday that changed a whole lot of schedules :>)
Yes, taking the leading "/" off the directory name solved the problem (I had asked about that almost two years ago, remembered your solution, and could have sworn that I tried that before posting here).
Here's the Fetch Transcript window from the attempt with the leading "/"
Fetch 5.7.5 (5H1476) Intel (Web Store) running on Mac OS X 10.8.5 (12F2518) Intel English
StuffIt Engine 0x820, StuffIt SDK Version 10.1.1b1
Partial serial FETCH55001-4BNU-MZ4P T
Connecting to 12.156.189.91 port 21 (Mac OS X firewall is allowing connections) (5/6/15 8:34 AM)
Connected to 12.156.189.91 port 21 (5/6/15 8:34 AM)
220-Microsoft FTP Service
220 Use Windows Explorer or a FTP client to upload files.
USER FOX29
331 Password required for FOX29.
PASS
230 User logged in.
SYST
215 Windows_NT
PWD
257 "/FOX29" is current directory.
PWD
257 "/FOX29" is current directory.
PWD
257 "/FOX29" is current directory.
TYPE A
200 Type set to A.
PORT 192,168,2,224,245,62
200 PORT command successful.
LIST -al
125 Data connection already open; Transfer starting.
05-05-15 10:06PM <DIR> WFLX-HD
05-04-15 05:16PM <DIR> WFLX-SD
226 Transfer complete.
CWD /WFLX-HD
550 The system cannot find the file specified.◇
ftp_cwd: 2,-30006 (state == CHANGING_DIR)
PWD
257 "/FOX29" is current directory.
QUIT
221 Goodbye.I guess I'll have to test the Directory in my script for a leading "/" and remove it and try again if I get the -30006 error.
Thanks for the hint.
Jim Brandt
-
Jim Brandt Member
Another question.
When I build a login to an FTP site, I code it as:
set FTPSite to "ftp://" & UserID & ":" & UserPass & "@" & FTPAddress
tell application "Fetch"
open remote item FTPSite authentication Auth
end tellFor an anonymous login with an email address as the password, what do I fill in for the UserID and is the syntax the same, meaning you'd have "ftp://:password@address" as the complete string with password having an @ in the middle?
Jim Brandt
-
Jim Matthews Administrator
For an anonymous login you can just use "ftp://" & FTPAddress; no username, password, colon or at-sign are necessary.
Thanks,
Jim Matthews
Fetch Softworks -
Jim Brandt Member
OK, that works to get me logged in. They want my email address as the password, but let me log on without it. If I need to put the email address in as a password in the future, is it possible with an anonymous login from a script?
Jim
-
Jim Matthews Administrator
You could try using a username of "anonymous" and a password of your email address, with the @ replaced by %40. Fetch usually sends a default password for anonymous connections; I'm not positive that you can override it.
Thanks,
Jim Matthews
Fetch Softworks -
Jim Brandt Member
I tried that (Username = "anonymous" and the password = URL encoded email address), didn't log in.
Guess I'll stick with what works until they complain.
Jim
- Page 1
Jim,
I'm running Fetch under a script. I've connected to an FTP site and need to change directories. I can see the directory on the site, but the command to change directories is giving an error -30006, the text is:
Fetch could not open the folder “/WFLX-HD” because the FTP server says that the requested item could not be accessed. (If you entered a file or folder name or URL, check that it is correct.)
I use this same command to change directories on other sites, it's just this one site that is giving me trouble. Are there different protocols for changing directories?
The script commands are:
tell application "Fetch"
tell transfer window 1
try
set current folder to Dir
set MyFolder to current folder
on error ErrorMessage number ErrorNumber
set ThisURL to url
set ThisURL to escapeURL ThisURL
set Mess to "Error setting directory to " & Dir
set Mess to Mess & " on remote URL " & ThisURL
activate
display dialog Mess
end try
end tell
The offending line is the "set current folder to Dir" command. Dir contains "/WFLX-HD"
The main FTP folder contains two items, folders, named WFLX-HD and WFLX-SD. If I connect to the site and double click on the folder manually, it opens just fine. It just won't open under the script command. Thoughts?
Jim Brandt
Posted 8 years ago #