Changeset 20943

Show
Ignore:
Timestamp:
16.11.2009 11:42:51 (10 years ago)
Author:
mdewsnip
Message:

Fixed a bug causing "-records_per_folder 1" to fail miserably...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/bin/script/explode_metadata_database.pl

    r20822 r20943  
    383383 
    384384    # Check if we need to start a new directory for these records 
    385     if (($record_number % $records_per_folder) == 1) { 
     385    if ($records_per_folder == 1 || ($record_number % $records_per_folder) == 1) { 
    386386    my $documents_directory = $exploded_base_dir; 
    387387