FileOperations.pm (c9b362f6) FileOperations.pm (30acf5e8)
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 170 unchanged lines hidden (view full) ---

179 }
180 if ( ! -f $source_filename && ! defined $files{$source_filename})
181 {
182 # File does not exist and will not be created by an earlier operation.
183 push @error_messages, sprintf("file %s does not exist and can not be decompressed", $source_filename);
184 }
185 if ( -f $destination_filename && ! -w $destination_filename)
186 {
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 170 unchanged lines hidden (view full) ---

179 }
180 if ( ! -f $source_filename && ! defined $files{$source_filename})
181 {
182 # File does not exist and will not be created by an earlier operation.
183 push @error_messages, sprintf("file %s does not exist and can not be decompressed", $source_filename);
184 }
185 if ( -f $destination_filename && ! -w $destination_filename)
186 {
187 # Destination file aleady exists but can not be replaced.
187 # Destination file already exists but can not be replaced.
188 push @error_messages, sprintf("compress destination file %s exists but can not be replaced", $destination_filename);
189 }
190 }
191 else
192 {
193 push @error_messages, sprintf("unknown operation %s", $command);
194 }
195 }

--- 138 unchanged lines hidden ---
188 push @error_messages, sprintf("compress destination file %s exists but can not be replaced", $destination_filename);
189 }
190 }
191 else
192 {
193 push @error_messages, sprintf("unknown operation %s", $command);
194 }
195 }

--- 138 unchanged lines hidden ---