- # Copied from old Dev-Editor (great idea)
-
- my %dispatch = ('show' => \&exec_show,
- 'beginedit' => \&exec_beginedit,
- 'canceledit' => \&exec_unlock,
- 'endedit' => \&exec_endedit,
- # 'mkdir' => \&exec_mkdir,
- # 'mkfile' => \&exec_mkfile,
- 'workwithfile' => \&exec_workwithfile,
- # 'copy' => \&exec_copy,
- # 'rename' => \&exec_rename,
- 'remove' => \&exec_remove,
- 'unlock' => \&exec_unlock
- );
+ abort($config->{'errors'}->{'dir_not_exist'});
+ }
+
+ # ... and check if the path is above the root directory
+
+ unless(($new_physical,$new_virtual) = check_path($config->{'fileroot'},$dir))
+ {
+ abort($config->{'errors'}->{'create_ar'});
+ }
+
+ # Create the physical and the virtual path