![]() |
SITE FIND/SEARCH <file *keyword*>
Hello.
I am looking for a script that can search/find for files on my site, using keywords. I should mention, i do not want a dupe script (that will block dupe files). I've seen a script like this for drftpd and was wondering if someone could write a script that is similar. it should look something like this: Quote:
thanks :) |
I think I can get the functionality you want if you just play with your configuration a bit :)
First off, nxTools has the ability to track the names of all files so it can reject duplicates, but it doesn't bother to do so unless you have enabled dupe checking of files. So go do this now in your nxTools.cfg file: Code:
set dupe(CheckFiles) True Code:
set dupe(RebuildPaths) { Now for the tricky part! If you have the following settings: Code:
set force(NfoFirst) False Code:
[FTP_Pre-Command_Events] Code:
PRESTOR { Code:
PRESTOR { After making these changes, you'll need to import all the filenames be rescanning the directories via "SITE REBUILD". When that is done, you can use 'SITE FDUPE [-max <limit>] <filename>' just like you can use 'SITE DUPE [-max <limit>] <release>'. I know the documentation says it matches specific releases or files, and you need to use 'SITE SEARCH' instead, but I happen to know it's the same function so it will wildcard search. You can modify how FDUPE outputs the results by editing the scripts/nxTools/text/FileDupe* files... I'd also like to suggest you backup your configuration before trying this just in case it doesn't work. Assuming your footer is accurate and you are using v6.9.3 I would suggest you bite the bullet and do the HUGE upgrade to v7.7.1. I know it's a lot of work to redo/merge the ioFTPD.ini file, but it's probably worth it for you. Once you have done that you can check out the source\nxSearch.itcl script by copy it to the scripts dir, and searching for the name in ioFTPD.ini and enabling it. I find using the /Search dir very helpful since it provides links right to the item so you can just click on the dir you want. This script is similar to the older ioNxSearch in v6.x but v7 provides you the ability to have multiple scripts and a bunch of new features. If you find you like the feature let me know and I can tweak the script to search for files instead of dirs so you could have a /SearchFiles auto-linking search script. I'm not sure, but I think you could then just download the files right from the returned virtual listing. |
Thanks, Yil. That worked great :)
I am planning to upgrade to v7.7.1, sometime within the next month or so (need to dedicate a few days to doing it, when i am off frmo work). Thanks again for you help :) |
Or use my site search http://tinyurl.com/freeftpservertools/files which works on command line..
ioFTPD setup: edit ioFTPD.ini and add under [FTP_CustomCommands] SEARCH = %EXEC ..\scripts\sitesearch.exe TIMEOUT=5000 START="%[$path]" ioFTPD and ftp client side effects: if the query takes too long your client will return without a result. To avoid that use the TIMEOUT=. etc.. just read the text file.. |
All times are GMT -5. The time now is 03:38 PM. |
Powered by vBulletin® Version 3.8.11 Alpha 3
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)