PDA

View Full Version : !!_HELP_!! Latest Dir


Turrican
02-04-2005, 02:16 PM
hi,

under "latest dir" i understand. when i create an new dir in Mp3 as example.
that in the root dir an "link" is of the last created Dir.

i tryed out ioBanana und LatestDir. but sadley without success.

mabey someone can help.

greetings.

tuff
02-04-2005, 02:19 PM
ioLATESTDIR

http://www.ioftpd.com/scripts/script.php?id=38

simple, effective, kills 99% of all know germs :D

Turrican
02-05-2005, 11:02 AM
many thanks. this works....

but still one problem left. it creates the "link" in the root dir.

i found this in the script ....

file mkdir "$root/$latestlink$lastdir"
if {[file exists "$root/$latestlink$lastdir"]} {
vfs chattr "$root/$latestlink$lastdir" 1 "$vfs"

how i can change this to make the latestdirlink in the root\home\
dir ?
mabey this way ?

file mkdir "$root/home/$latestlink$lastdir"
if {[file exists "$root/home/$latestlink$lastdir"]} {
vfs chattr "$root/home/$latestlink$lastdir" 1 "$vfs"


or depends this linkscript, on the user which is logged in ?

thanks forward ...