From ad416da7cfff788f6040a35ec553082645fc22d3 Mon Sep 17 00:00:00 2001 From: Michael Stumpf Date: Tue, 27 Nov 2018 15:50:46 +0100 Subject: [PATCH] added subfile existence check --- matlab/@ustar/ustar.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/matlab/@ustar/ustar.m b/matlab/@ustar/ustar.m index 7d19fa7..f9c8288 100644 --- a/matlab/@ustar/ustar.m +++ b/matlab/@ustar/ustar.m @@ -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 %%