added subfile existence check
This commit is contained in:
parent
34a6c9fe29
commit
ad416da7cf
|
|
@ -131,6 +131,13 @@ classdef ustar < handle
|
|||
end
|
||||
fclose(fidw);
|
||||
end
|
||||
function [flag] = isSubfile(obj,fname)
|
||||
% [flag] = obj.isSubfile(fname)
|
||||
% Checks if a subfile exists within tar-ball.
|
||||
% Input
|
||||
% fname name of subfile
|
||||
flag = any(ismember(obj.subFile,fname));
|
||||
end
|
||||
end
|
||||
%% ------------------------------------------------------------------------%%
|
||||
%% PRIVATE METHODS %%
|
||||
|
|
|
|||
Loading…
Reference in New Issue