Maximum Path Length Exceeded?
53 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Kevin
il 31 Lug 2014
Commentato: Walter Roberson
il 13 Ott 2015
I'm running a compiled script that throws an error at
mkdir(x)
where x is the name of some path. The error is "Maximum path length exceeded".
I try running the exact same line in the command window, and it works just fine.
Any ideas as to what's going on?
Thanks.
3 Commenti
K E
il 13 Ott 2015
Can someone point to where "Long path tool" can be found? I don't see it in the file exchange.
Risposta accettata
Image Analyst
il 31 Lug 2014
Modificato: Image Analyst
il 31 Lug 2014
There is a limit to how long directory names can be, like 256 characters or something. What operating system are you using? What is length(x)? If you're making the folder a subfolder of the "current folder" it may be too long because a compiled app really runs out of some secret hidden folder that is really long. Put this in your script just before mkdir and see what it spits out to the console window:
pwd
fprintf('Length of %s = %d', x, length(x));
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Search Path in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!