modules/Tool.pm to this branch
# Execute Dev-Editor's commands
#
# Author: Patrick Canterino <patrick@patshaping.de>
# Execute Dev-Editor's commands
#
# Author: Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2005-03-18
+# Last modified: 2005-04-22
return error($config->{'errors'}->{'no_dir_access'},$upper_path) unless(-r $physical && -x $physical);
my $direntries = dir_read($physical);
return error($config->{'errors'}->{'no_dir_access'},$upper_path) unless(-r $physical && -x $physical);
my $direntries = dir_read($physical);
- return error($config->{'dir_read_fail'},$upper_path,{DIR => encode_entities($virtual)}) unless($direntries);
+ return error($config->{'errors'}->{'dir_read_fail'},$upper_path,{DIR => encode_entities($virtual)}) unless($direntries);
my $files = $direntries->{'files'};
my $dirs = $direntries->{'dirs'};
my $files = $direntries->{'files'};
my $dirs = $direntries->{'dirs'};
# Some shared sub routines
#
# Author: Patrick Canterino <patrick@patshaping.de>
# Some shared sub routines
#
# Author: Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2005-02-13
+# Last modified: 2005-04-22
# We extract the last part of the path and create the absolute path
my $first = upper_path($path);
# We extract the last part of the path and create the absolute path
my $first = upper_path($path);
+ $first = File::Spec->canonpath($first);
$first = abs_path($first);
my $last = file_name($path);
$first = abs_path($first);
my $last = file_name($path);