|
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64 User : jackjohn ( 502) PHP Version : 5.3.17 Disable Function : NONE Directory : /usr/share/zsh/4.3.10/functions/ |
Upload File : |
# Generate an array name for storing the cache for the current session,
# storing it in fcache_name, then generate the cache for the current
# directory, or with argument -d clear the cache.
[[ $1 = -d ]] && local fcache_name
fcache_name=$zfconfig[fcache_$ZFTP_SESSION]
if [[ -z $fcache_name ]]; then
local vals
vals=(${(v)zfconfig[(I)fcache_*]##zftp_fcache_})
integer i
while [[ -n ${vals[(r)zftp_fcache_$i]} ]]; do
(( i++ ))
done
fcache_name=zftp_fcache_$i
zfconfig[fcache_$ZFTP_SESSION]=$fcache_name
fi
if [[ $1 = -d ]]; then
unset $fcache_name
elif (( ${(P)#fcache_name} == 0 )); then
local tmpf=${TMPPREFIX}zffcache$$
zftp ls >$tmpf
eval "$fcache_name=(\${(f)\"\$(<\$tmpf)\"})"
rm -f $tmpf
fi