X-Git-Url: https://git.p6c8.net/devedit.git/blobdiff_plain/7897c609d415e2362b8c42c3b918a7ebcb5c4bda..cd639d72ba42aa0aa966729d41be24eb050aa0fc:/modules/File/Access.pm?ds=sidebyside diff --git a/modules/File/Access.pm b/modules/File/Access.pm index d892ed8..4c4d0da 100644 --- a/modules/File/Access.pm +++ b/modules/File/Access.pm @@ -7,7 +7,7 @@ package File::Access; # using only one command # # Author: Patrick Canterino -# Last modified: 2005-02-09 +# Last modified: 2005-02-10 # use strict; @@ -192,16 +192,16 @@ sub file_save($$;$) # Params: 1. File::UseList object # 2. File to remove # -# Return: -nothing- +# Return: Status code (Boolean) sub file_unlock($$) { my ($uselist,$file) = @_; - $uselist->remove_file($file); - $uselist->save; + $uselist->remove_file($file) or return; + $uselist->save or return; - return; + return 1; } # it's true, baby ;-)