Feature Request: Create Directory via Command Line

Client feature requests, product gripes, and other general questions.

Post Reply
astead
Posts: 10
Joined: Wed Feb 16, 2005 11:40 pm

Feature Request: Create Directory via Command Line

Post by astead »

It would be nice to create directories via the command line. I previously thought simply uploading would do this, but it doesnt seem to do so...
Thanks!
astead
Posts: 10
Joined: Wed Feb 16, 2005 11:40 pm

Post by astead »

I am using build 1412.04
I mentioned it a little while ago (mid Feb) and I got a new build and thought everything was ok, but maybe I didnt test it fully or the newer build since then isnt working the same...?
Here is my specific example:
localfile:
C:\ccn\media\mp3\Stead-Alan\studies-topical\test\20050322.mp3

commandline script:
C:\Progra~1\CoreFTP\coreftp.exe -site ccn -u "c:\ccn\media\mp3\Stead-Alan\studies-topical\test\20050322.mp3" -p "ftp://ftp.calvarychapel.com/media/mp3/S ... 050322.mp3" -O -S

remote server does not contain the Stead-Alan folder
The CoreFTP status window pops up and then dissappears, no errors or anything but the file hasnt been uploaded and the directory hasnt been created on the remote site...
Am I doing something wrong?
astead
Posts: 10
Joined: Wed Feb 16, 2005 11:40 pm

Post by astead »

I tried changing the commandline as suggested:
C:\Progra~1\CoreFTP\coreftp.exe -site ccn -u "c:\ccn\media\mp3\Stead-Alan\studies-books\01-GEN\01-GEN-001-001.mp3" -p "/media/mp3/Stead-Alan/studies-books/01-GEN/" -O -S

(slightly different example. same situation)
still get the same result. Looks like everything goes through fine, but then neither the file nor the directory structure is there on the remote end.
astead
Posts: 10
Joined: Wed Feb 16, 2005 11:40 pm

Post by astead »

Ahh, this clears it up a bit...

CWD /media/mp3/Stead-Alan/studies-topical/test
550 Can't change directory to /media/mp3/Stead-Alan/studies-topical/test: No such file or directory
MKD /media/mp3/Stead-Alan/studies-topical/test
550-Can't create directory: No such file or directory

Looks like it is trying to create the last subdirectory, but it cant since neither Stead-Alan nor studies-topical exist...
Is that a server or client issue?

Alan
astead
Posts: 10
Joined: Wed Feb 16, 2005 11:40 pm

Post by astead »

I tried the -recurse and it did not work...

I also noticed with only 1 level of directories to create, it worked:
MKD /media/mp3/worship/Calvary-Chapel

257-"/media/mp3/worship/Calvary-Chapel" : The directory was successfully created

I guess I can just make sure I only have 1 level of possible new directories... :)
Post Reply