PDA

View Full Version : FTPServerTools scripts


FTPServerTools
06-04-2004, 09:31 AM
For anyone that uses my scripts. I just did some major cookie updating. So OnDirCreated, OnDirDeleted and FTPLogger are all working with it. You need the last FTPServerTools.ini with it. The %t and %s and %~f and such cookies are all gone and are now more readable cookies. Dont mix the use of older and newer versions of those scripts with each other.
In short:
%[ParentPath] = the full path of the parent dir being handled (*NEW*)
%t is now %[DirPath]
%[DirName] = the name dir that is being handled (*NEW*)
%t is now %[FilePath]
%f is now %[FileName]
%#e is now %[FilesExpected]
%a is now %[FilesAvailable]
%#f is now %[FilesGood]
%#b is now %[FilesBad]
%#m is now %[FilesMissing]
%#e is now %[FilesExtra]
%$a is now %[SizeAvailable]files in bytes/KBytes/MBytes
%$f is now %[SizeGood]
%$e is now %[SizeExpected]
%~u is now %[UserName]
%~f is now %[PercentGood]
%~o is now %[PercentMissing]%~p is now %[ProgressBar]

More changes will be coming...
I needed this for %[MP3Artist] and so on.. More changes will be coming.

dink-puller
09-25-2004, 08:45 AM
There isn't much in the FTPServerTools readme about how to set it all up with ioFTPD. Is there a n00b.doc anywhere I can lay my mitts on?
::EDIT:: Oh, I see the .ini file is d/l'd separately, I'll start with that.

FTPServerTools
09-25-2004, 04:10 PM
goto http://ftpservertools.tripod.com to the ioFTPD section or read FTPServerTools.ini

dink-puller
10-29-2004, 02:27 AM
Thanks, I got it all set up nicely, once I figured out that when your site says:

onUploadComplete = ..\scripts\FTPlogger.exe
it actually means

onUploadComplete = EXEC ..\scripts\FTPlogger.exe
no wonder it didn't work!! doh!
Also, people are always uploading useless script tags and message files from other FTP servers. I've taken care of most of them with DeleteFile= *.message and similar, but when the tags are folders and not files, what's the best way to delete them?

thewarden
10-29-2004, 03:47 AM
dink-puller -

but when the tags are folders and not files, what's the best way to delete them?

--------

Try this area of the ini... :)

But watch your WILDCARDS here or you can do damage...


[Uploads]
;DeleteFile=C:\FTP\VCD\!*

^ files

below dir's

[Directories]
Remove=* *
Remove=*-[]-*
Remove=*= =*
Remove=*-= =-*
Remove=*-COMPLETE*
Remove=*-INCOMPLETE*
Remove=*-NONFO
Remove=*-NODIZ
Remove=*solaris*
Remove=*ibm*
Remove=*czech*
Remove=*spanish*
Remove=*german*
Remove=*danish*
Remove=*finnish*
Remove=*italian*
Remove=*swedish*
Remove=*dutch*

dink-puller
10-29-2004, 05:18 AM
With my version of ftpservertools and ioFTPD, that returns
an error to the FTPclient and prevents the folder's creation:

BANNED:<foldername> is banned due to banned word: *<*>*
Which I see now is configurable to anything. When that option is removed though, there is no message, but directory still is not created and the item is left in the client's queue, rather than simply allowing it's creation and deleting it, as it does with files.
I have found that this can cause FlashFXP to hang when it expects a raw and it doesn't get one on a failed cmd. Prefacing the message like:
ErrorMatch= 550 Make %[DirName] Failed
works much better. Thanks for your reply.

FTPServerTools
10-29-2004, 08:48 AM
That seems to be a buggy flashfxp. It is not supposed to parse the string after the number. The 3 didigt number is only standard according to the rfc 959 ftp standard.