[PLUGIN][2.0] DelZero - Irc Command

A place for mods with no support from someone in the "developers" group

Moderator: developers

[PLUGIN][2.0] DelZero - Irc Command

Postby NicoFr38 » Fri Aug 04, 2006, 6:47 am

An other little plug-in that I hope will help some peoples.

This plug-in is to allow users to delete 0 bytes files from IRC, in this first release you have to provide the full path where you want to delete 0 bytes files and the command is not recursive (that mean that it will not look for 0 bytes files in sub dirs).

Ex : !delzero /isos/my.linux.distro/

To install, just extract the sources, compile with ant, and add the line in your irccommand.conf.

To do for next release:
- delete recursively
- find the correct path by just giving the name of the folder to search

I don’t know when I will have time to achieve this, so don’t wait for the next release :)


Nico - an other French codder :p
You do not have the required permissions to view the files attached to this post.
NicoFr38
 
Posts: 57
Joined: Tue May 31, 2005, 6:27 pm

Postby BotzCare » Fri Aug 04, 2006, 7:12 am

I have a similiar one like this, but how about when files that are kept 0-bytes till its fully uploaded? will those be deleted aswell? The one i have does delete them too...
Nevertheless good work!
BotzCare
Node's little helper
 
Posts: 100
Joined: Fri Mar 04, 2005, 12:54 pm

Postby NicoFr38 » Fri Aug 04, 2006, 7:34 am

You are right it will delete all files, I have not tested if there was an active transfer, but as far as I know many 0 files are made because drftpd thinks the transfer is still running, so the question is to know how to make the difference between an active transfer and a ghost transfer ... don’t know if any one cay answer that :p
NicoFr38
 
Posts: 57
Joined: Tue May 31, 2005, 6:27 pm

Postby tworkemon » Sat Aug 05, 2006, 2:30 pm

Becarefull I think this will delete symlinks aswell as directories if not used properly.
_Dink @ #drftpd
tworkemon
Node's little helper
 
Posts: 258
Joined: Fri Dec 10, 2004, 9:15 pm

Postby teslafan1971 » Sat Aug 05, 2006, 9:27 pm

This will delete 0bytes and is working perfectly and wont mess anything up like delete symlinks. There is a read me in the rar to say what goes where and all credits go to Teflon for this mod. And of course credit goes to NicoFr38 for also making this sweet mod. And you dont need to specify where the 0byte occurs all u have to do is !0byte-delete (section) or !0byte-delete
(release) or the whole path which ever you prefer
You do not have the required permissions to view the files attached to this post.
teslafan1971
Node's little helper
 
Posts: 152
Joined: Fri Dec 03, 2004, 9:12 am
Location: South Carolina

Postby NicoFr38 » Mon Aug 07, 2006, 6:52 am

Realy good job, I am going to replace mine by this one which is relay more safty and powerfull.
NicoFr38
 
Posts: 57
Joined: Tue May 31, 2005, 6:27 pm

Postby s33k3r » Mon Aug 07, 2006, 7:59 am

This is really nice and usefull. These 0byte files r annoying.

Thx Teflon, teslafan1971 and every1 else working on dr' mod development.
s33k3r
 
Posts: 21
Joined: Wed Nov 24, 2004, 2:20 pm
Location: .UE

Postby BotzCare » Mon Aug 07, 2006, 11:42 am

Does this one keep track of files thats stil being uploaded and kept 0-byte till its finished. So that it wont delete these files still being upped?
Maybe need somthing with org.drftpd.remotefile.FileStillTransferringException
in the code ? I dont know anything about java here unfortunately.
BotzCare
Node's little helper
 
Posts: 100
Joined: Fri Mar 04, 2005, 12:54 pm

Postby teslafan1971 » Mon Aug 07, 2006, 9:19 pm

I believe the files that are still being uploaded it wont delete them 0byte files cause they are still transfering cause i have tested it thorouly and during a race it didnt delete any files that was still transfering if this is what u mean
teslafan1971
Node's little helper
 
Posts: 152
Joined: Fri Dec 03, 2004, 9:12 am
Location: South Carolina

Postby tdsoul » Wed Aug 09, 2006, 8:24 pm

FileStillTransferringException is only for in-transit *.sfv files, i believe.

I'd be interested if anyone can come up with a reason why 0 byte files remain on a site that has zipScript enabled, and a .sfv files to check the crc against.

If you're working with Zip files or something, then i can understand the bug, if there is a .sfv already persent, then this should not happen, ever. (in theory)
tdsoul
Node's little helper
 
Posts: 551
Joined: Fri Nov 19, 2004, 7:40 pm

Postby NicoFr38 » Thu Aug 10, 2006, 6:46 am

I believe that zerob files come when a transfer have problem and the slave (so the master) have not been told about the problem. Lots of time you can see in the WHO that the master still believe that the file is transferring, and because of that the file is not check on the sfv and is not deleted.
NicoFr38
 
Posts: 57
Joined: Tue May 31, 2005, 6:27 pm

Postby tdsoul » Wed Aug 16, 2006, 4:07 pm

NicoFr38 wrote:I believe that zerob files come when a transfer have problem and the slave (so the master) have not been told about the problem. Lots of time you can see in the WHO that the master still believe that the file is transferring, and because of that the file is not check on the sfv and is not deleted.


This particular problem I thought was fixed a few months ago. The latest release and svn versions should not do that anymore.
tdsoul
Node's little helper
 
Posts: 551
Joined: Fri Nov 19, 2004, 7:40 pm

Script tweak

Postby jb2112 » Wed Nov 01, 2006, 12:57 am

Awesome script, works perfectly.
Can someone help me with this please.

here is my line and announce:

release.found=${color}15${bold}0BYTE${coloroff} ~ ${bold}${release}${bold} ~ ${bold}${targetuser}${bold}

0BYTE ~ /DIR/Release Name ~ targetuser

1. How can i have it just list the release and not the dir

2. How do i get it to list the 0byte owner

Example of how I would like it to look: 0BYTE ~ Release Name ~ 0byte Owner

Thanks
jb2112
 
Posts: 4
Joined: Tue Oct 31, 2006, 6:38 pm

Postby shadowmanr6 » Fri Feb 02, 2007, 3:16 am

maybe possible to add a feature that does a recurrent process of it scanning for zerobytes?
shadowmanr6
 
Posts: 18
Joined: Sun Aug 21, 2005, 8:26 am

Postby _scatman » Sun Oct 21, 2007, 5:13 am

helps to RTFM :/
_scatman
 
Posts: 16
Joined: Mon Jun 20, 2005, 1:31 pm

Next

Return to New & Rogue Mods

Who is online

Users browsing this forum: No registered users and 0 guests

cron