update_check

Check for updates and replace old files
다운로드 수: 195
업데이트 날짜: 2014/7/15

라이선스 보기

Check for updates and replace old files. It's possible to compare the modification date and the file size. Useful when some files are modified in one directory and you want to synchronize them with another folder.
USAGE
update_check(fpath)
old_files = update_check(fpath)
[old_files not_found] = update_check(fpath)

[...] = update_check(fpath)
[...] = update_check(fpath, rec)
[...] = update_check(fpath, rec, crit)
[...] = update_check(fpath, rec, crit, ext)
[...] = update_check(fpath, rec, crit, ext, replace)

INPUT
- FPATH: parent folder to search for changes (the original files are expected to be in MATLAB's search path)
- REC: 1 (search for files recursively, i.e., include all FPATH subfolders), 0 (only FPATH) [default: 0]
- CRIT: criterion: 'time' (compare the modification date) or 'size' (compare the file size) [default: 'time']
- EXT: cell array containing the file extension [default: {'m' 'mat' 'fig'}]
- REPLACE: 1 (replace old files), 0 (don't replace) [default: 0]

If any of the input variables is empty or missing, the default value will be used.

OUTPUT
- OLD_FILES: cell array with the name and path of the old files
- NOT_FOUND: cell array with the name and path of the files that were not found in the search path

인용 양식

Guilherme Coco Beltramini (2024). update_check (https://www.mathworks.com/matlabcentral/fileexchange/47240-update_check), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2010a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Search Path에 대해 자세히 알아보기
태그 태그 추가

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0