added subfile existence check

This commit is contained in:
Michael Stumpf 2018-11-27 15:50:46 +01:00
parent 34a6c9fe29
commit ad416da7cf
1 changed files with 7 additions and 0 deletions

View File

@ -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 %%