#!C:/Programme/Perl/bin/perl.exe -w
#
-# Dev-Editor 2.1a
+# Dev-Editor 2.2
#
# Dev-Editor's main program
#
-# Author: Patrick Canterino <patshaping@gmx.net>
-# Last modified: 2004-11-13
+# Author: Patrick Canterino <patrick@patshaping.de>
+# Last modified: 2004-11-26
#
use strict;
use Output;
use Tool;
-$VERSION = '2.1a';
+$VERSION = '2.2';
# Path to configuration file
# Change if necessary!
abort($config->{'errors'}->{'create_ar'},"/");
}
+ # Check if we have enough permissions to create a file
+ # in this directory
+
+ unless(-r $new_physical && -w $new_physical && -x $new_physical)
+ {
+ abort($config->{'errors'}->{'dir_no_create'},"/",{DIR => $new_virtual});
+ }
+
# Create the physical and the virtual path
$new_physical = File::Spec->canonpath($new_physical."/".$file);