Home > data-access > subject_dir_exists.m

subject_dir_exists

PURPOSE ^

Returns true if the directory for the subj. exists.

SYNOPSIS ^

function [ is_there ] = subject_dir_exists( subject_id )

DESCRIPTION ^

Returns true if the directory for the subj. exists.
   Maybe some subjects have info in the subject_table file, but their
   actual data are not present on the multiwork share.  If so, this
   function will detect that the directory doesn't exist, and return
   false.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [ is_there ] = subject_dir_exists( subject_id )
0002 %Returns true if the directory for the subj. exists.
0003 %   Maybe some subjects have info in the subject_table file, but their
0004 %   actual data are not present on the multiwork share.  If so, this
0005 %   function will detect that the directory doesn't exist, and return
0006 %   false.
0007 
0008 subj_dir = get_subject_dir(subject_id);
0009 is_there = exist(subj_dir, 'dir') == 7;
0010 
0011 
0012 end

Generated on Tue 23-May-2017 20:00:55 by m2html © 2005