From: <aba...@us...> - 2012-07-31 08:46:30
|
Revision: 10787 http://octave.svn.sourceforge.net/octave/?rev=10787&view=rev Author: abarth93 Date: 2012-07-31 08:46:24 +0000 (Tue, 31 Jul 2012) Log Message: ----------- bug fix for compressed files Modified Paths: -------------- trunk/octave-forge/extra/ncArray/inst/cached_decompress.m Modified: trunk/octave-forge/extra/ncArray/inst/cached_decompress.m =================================================================== --- trunk/octave-forge/extra/ncArray/inst/cached_decompress.m 2012-07-31 08:29:25 UTC (rev 10786) +++ trunk/octave-forge/extra/ncArray/inst/cached_decompress.m 2012-07-31 08:46:24 UTC (rev 10787) @@ -10,7 +10,7 @@ % Alexander Barth, 2012-06-13 % -function [fname]=cached_decompress(url) +function [fname] = cached_decompress(url) global CACHED_DECOMPRESS_DIR @@ -23,7 +23,11 @@ cache_dir = fullfile(getenv('HOME'),'tmp','Cache'); end -if beginswith(url,'http:') || ~endswith(url,'.gz') || ~endswith(url,'.bz2') +% do nothing if +% file is a a remote url (begins with http:) +% or file does not end with .gz or .bz2 + +if beginswith(url,'http:') || ~(endswith(url,'.gz') || endswith(url,'.bz2')) % opendap url or not compressed file fname = url; return This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |