Matlab Compiler: Is "userpath" always there and accessible?
조회 수: 34 (최근 30일)
이전 댓글 표시
Dear all,
my compiled app needs to store some temporary files in the background. Is it safe to assume that the directory given by userpath will exist on all computers? And that we will always have write access to this folder?
Thanks!!
William
댓글 수: 3
답변 (1개)
Steven Lord
2024년 11월 27일 15:48
댓글 수: 2
Steven Lord
2024년 11월 30일 21:06
It ought to return a folder name, unless perhaps a user has done something unusual with certain environmental variables. The documentation says that the folder is not guaranteed to exist, but you can check that with exist and use mkdir to create the directory if it does not exist yet.
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!