X-Git-Url: https://git.p6c8.net/devedit.git/blobdiff_plain/8ad672c3c8828a367013ff2f84b89a82cb7533b5..192be0abe5fb17e24b17342407893bb2c7607d78:/modules/File/Access.pm diff --git a/modules/File/Access.pm b/modules/File/Access.pm index 5e5cca1..af219a7 100644 --- a/modules/File/Access.pm +++ b/modules/File/Access.pm @@ -7,14 +7,14 @@ package File::Access; # using only one command # # Author: Patrick Canterino -# Last modified: 2010-12-27 +# Last modified: 2011-02-11 # # Copyright (C) 1999-2000 Roland Bluethgen, Frank Schoenmann -# Copyright (C) 2003-2009 Patrick Canterino +# Copyright (C) 2003-2011 Patrick Canterino # All Rights Reserved. # # This file can be distributed and/or modified under the terms of -# of the Artistic License 1.0 (see also the LICENSE file found at +# of the Artistic License 2.0 (see also the LICENSE file found at # the top level of the Dev-Editor distribution). # @@ -22,7 +22,8 @@ use strict; use vars qw(@EXPORT $has_flock - $has_archive_extract); + $has_archive_extract + $archive_extract_error); use Fcntl qw(:DEFAULT :flock); @@ -84,11 +85,27 @@ sub archive_unpack($;$) if($path) { - return $ae->extract(to => $path); + if($ae->extract(to => $path)) + { + return 1; + } + else + { + $archive_extract_error = $ae->error; + return; + } } else { - return $ae->extract; + if($ae->extract) + { + return 1; + } + else + { + $archive_extract_error = $ae->error; + return; + } } }