Re: Trying to create a directory
Alexander Lukyanov <[email protected]>
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <CANnoEwr+B5296MUjydJELs=3QVBuyS2s+A2c1UT4VvUhdWsjUA@mail.gmail.com> |
Git HEAD sources now contain mkdir -f option for quiet operation. Funny that mkdirJob had already boolean quiet flag. 2014-01-04 18:47 GMT+04:00 Gianni Piccini <[email protected]>: > Hi to all. I would ask if there is a solution to my (mainly estethic) > problem. I use lftp launching it with a script in parameters: > > lftp -f script.txt > > I need to upload some files in a server that has many files e directories > (so, a complete mirror is not good due the needed time), and I compose the > script in this way: > > open -u myuser,mypass ftp.mysite.com > mkdir -p /www/dir1 > put -a -c -O /www/dir2 /home/me/upload/index.txt > mkdir -p /www/dir2 > put -c -O /www/dir2 /home/me/upload/image.jpg > quit > > Sometimes files are not present in the server, or directory could not > exist, so, if overwriting with new files is handled by switch -c, I've put > the command mkdir -p before upload, but, that's my question, there is any > way to silently create the directory or try to create it only if not > exists, or avoiding error messages if it is already present? > _______________________________________________ > lftp mailing list > [email protected] > http://univ.uniyar.ac.ru/mailman/listinfo/lftp > -- Alexander. _______________________________________________ lftp mailing list [email protected] http://univ.uniyar.ac.ru/mailman/listinfo/lftp