Thread: esmNewdir
View Single Post
Old 12-14-2004, 09:38 AM  
esmandil
Senior Member
 
Join Date: Oct 2004
Posts: 107
Default esmNewdir

http://www.ioftpd.com/scripts/script.php?id=166
Excerpts for ReadMe.txt:

##################################################
This is a newdir/dupe script for ioFTPD, created by Esmandil
version 0.35 (11.12.2004)

It uses sqlite database, so it is pretty fast: I have tested with
database of over 1.000.000 directories and it still took less than 0.5
seconds to MKD. On the other hand, the dupe db takes a bit more (about
50% more, probably) space than flat text file would. It is well worth
it, though

This script was heavily influenced by NEWDIR V3.5.2 by B0unTy
-- big thanks, B0unty!

##################################################

Usage:

site new [<section>] [<count>] [<pattern>]
site dupe <pattern> [<section>] [<count>]
site undupe <dirname>

Deleting a directory removes it from the dupe database.
Wipe-ing a directory keeps it in dupe database.

##################################################

Example of use:

PHP Code:
MKD test1
257 
"test1" created.

MKD test1
550 This dir looks like a dupe
!

site undupe test1
200
-Successfully unduped test1

site 
new D*V 3 tes
200
-##  Age       Owner       Section     Name         
200---  --------  ----------  ----------  -------------
200-01  01d 04h   ioFTPD      DVDR        test1        
200
-02  03d 00h   ioFTPD      DiVX        test2        
200
-03  03d 00h   ioFTPD      DiVX        test3        
200
-Usagesite new [<section>] [<count>] [<pattern>]

site dupe test gam 3
200
-## Age       Owner       Section     Name                
200--- --------  ----------  ----------  ------------------- 
200-01 00m 02s   ioFTPD      game        test7               
200
-02 02m 15s   ioFTPD      game        test8               
200
-          NotesWiped by ioFTPD on 2004-12-10 20:30:07,
200-03 01d 04h   ioFTPD      games_old   test9               
200
-          NotesUnduped by ioFTPD on 2004-12-10 20:38:04 
200
-Usagesite dupe <pattern> [<section>] [<count>] 
##################################################

!!! ATTENTION: batch script(s) I use -- namely run.bat -- have only
!!! been tested on WinXP. I am pretty sure they will work on 2000 as
!!! well, but most probably won't in 9x. If somebody manages to write
!!! it in a portable way, I would love to get my hands on it

##################################################

Have fun
esmandil is offline   Reply With Quote