Download "Invisible" .htaccess and .htpasswd dot files from your server
For some reason (security?) some FTP servers don't allow you to see dot files such as .htaccess and .htpasswd , this prevents you downloading them as well. Which is somewhat of a nuisance if you are trying to back them up or debug them.
Here is a zsh script I wrote to get round this, note you still need to enter your ftp login details, so this is not a hack.
#!/bin/zsh
# download "invisible" .htaccess .htpasswd files
autoload -U zfinit
zfinit
zfparams www.website.co.uk userid password # enter your own details here
zfopen
zfls -ad
zfget .htaccess
zfget .htpasswd

0 Comments:
Post a Comment
<< Home