diff options
author | Guilhem Moulin <guilhem.moulin@ens-lyon.org> | 2012-01-10 20:51:24 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@ens-lyon.org> | 2012-01-10 20:51:24 +0100 |
commit | 869a38ba87e998889b27248f1595746c0e714170 (patch) | |
tree | 2bfc16aae0bf1f59543ea65a5b3ded1fa50b1089 | |
parent | 209934e01e21ffbe5d7e25c7d72ceb221916ecc5 (diff) |
support for multi-directors
-rwxr-xr-x | videomv.pl | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -419,6 +419,13 @@ if (&is_symlink($real_new_path)) { $new_director =~ tr@/@_@; $new_director =~ s/[[:cntrl:]]//; + my @new_directors = split / *, */, $new_director; + die "Can't find a suitable director.\n" unless @new_directors; + my $lastdir = pop @new_directors; + $new_director = join ", ", @new_directors; + $new_director .= " & " if @new_directors; + $new_director .= $lastdir; + # Create directory if it doesn't exist my $new_dirname = catfile ($directors, $new_director); unless (-d $new_dirname) { |