Code covered by the BSD License  

Highlights from
Wait until function, class, directory, file or variable exists

Be the first to rate this file! 17 Downloads (last 30 days) File Size: 1.66 KB File ID: #41924
image thumbnail

Wait until function, class, directory, file or variable exists

by

 

24 May 2013 (Updated )

Wait until function, class, directory, file or variable exists (up to chosen time limit).

| Watch this File

File Information
Description

USAGE
waited = wait_for_existence(name,type,pause_time,max_time)

INPUT
- NAME: name of the function, class, directory, file or variable (must be a string)
- TYPE: 'builtin', 'class', 'dir', 'file' or 'var'
- PAUSE_TIME: amount of time to wait in the pauses (in secs)
- MAX_TIME: maximum amount of time to wait (in secs)

OUTPUT
- WAITED: 0 (if NAME exists) or 1 (if NAME does not exist and MAX_TIME has been elapsed)

Acknowledgements

This file inspired Create Folder And Rename If Another Has The Same Name.

Required Products MATLAB
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
03 Jun 2013

Added screenshot

Contact us