0

I have got a sftp script that downloads the archives , unzip it and then rename the files according to date and moves it to respective folder.

I had to move the script from USB drive onto a separate server . After i moved whenever the script runs it extracts the files but while moving files it gives following error :

mkdir: cannot create directory `../abc/2011-11-23': No such file or directory

Any help will be appreciated.

Thanks

quanta
  • 51,413
  • 19
  • 159
  • 217
San
  • 543
  • 4
  • 6

2 Answers2

2

It looks like the abc folder doesn't exist. You probably want to use -p option to make parent directories as needed:

$ mkdir -p ../abc/2011-11-23
quanta
  • 51,413
  • 19
  • 159
  • 217
  • thats what confusing me as /abc folder is already there, but i am still going try this – San Dec 02 '11 at 05:19
1

Either there is no '../' or there is no '../abc/'

thinice
  • 4,716
  • 21
  • 38