Plus/ZipScriptPlus

From DrFTPD

Jump to: navigation, search
Plus / ZipScriptPlus
DrFTPD+ Documentation
The + means better

About DrFTPD+

        Features List Edit
FindNuke, IRCUserManagement, RegexFilter, SpeedLimit, Miscellaneus, ZipScript+
Other guidance

Wikipedia:Regex

Contents

ZipScript+

Initially committed in r1498:r1499

Description

A ZipScript feature extension, which shares some features with GlobalCheck by k2r. Since we already had this written when he released GlobalCheck, we have never actually tested his.

These new features include the ability to deny users from creating a new directory if a .sfv file exists in that subdirectory's parent. (i.e. If /dir1/blah.sfv exists, then deny MKD /dir1/dir2). An exemption facility is provided so that you can also allow certain directories no matter what. (i.e. Sample). Since the opposite is also usually wanted, the ability to deny a .sfv from being uploaded when any subdirectory already exists (except those which are exempt) is also included. This adaptability is what makes this feature extension doing the right thing, 99.999% of the time.

Since most of the time whatever is sent first is usually correct, we have found this to work really well.

Configuration

Configuration of these features is done in zipscript.conf. The defaults will be fine for most users, and a detailed explaination of each follows:

#The sfvdeny features are intended to work in conjunction with sfvfirst,
#and will automatically be disabled if you have sfvfirst.required=false
#deny sfv upload if subdirs exist? [true/false]
sfvdeny.subdir.enabled=true

#list of subdirectories which can exist and still allow 
#an sfv to be uploaded. (globs/regex not allowed here) 
sfvdeny.subdir.exempt=Sample Cover Covers

#deny MKD when .sfv exists? [true/false]
sfvdeny.mkd.enabled=true

#List of subdirectories which can be made when .sfv exists (regex allowed)
sfvdeny.mkd.exempt=Sample Covers? Subs

If left completely unconfigured, ZipScript+ features default to being disabled.

Bugs/Known Issues

none

Related Links

Personal tools
SourceForge.net Logo