Why am I receiving an error using websave?
error using websave (line 107)
Unable to open output file: 'C:\Users\aaa\Dropbox\aaa.txt' for writing.
Common reasons include that the file exists and does not have write permission or the folder does not have write permissions.
These are new files and I have write permissions. I am running this inside a "parfor" loop with many urls.

 Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 22 de Mayo de 2018

0 votos

This error is indicating that the file does not exist or that there are no write permissions to this file.
In this case, there are no write permissions only at the exact instant the websave is called in the parfor loop and not otherwise.
This is because the file is being saved and deleted from a Dropbox folder. If the Dropbox folder is connected to the internet, it will constantly be syncing. This can cause delays in when files are saved and deleted and can therefore cause write issues.
Save the files to a local folder or turn off the Dropbox connection to the internet so it does not automatically sync.

Más respuestas (0)

Categorías

Más información sobre Scope Variables and Generate Names en Centro de ayuda y File Exchange.

Productos

Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by