Bug introduced in 10.2 and fixed in 11.1
I have found that
LocalSymbol will sometimes create and store persistent data in a directory different from and off the path of the one specified in its second argument.
Contents of a notebook demonstating the problem
I created a directory Test Folder on my desktop and saved the notebook the content of wto it as 'test.nb.
I then made a local symbol.
LocalSymbol["testData", NotebookDirectory] = "Hello, world";
LocalSymbol has no problem in retrieving the data.
However, the data is not stored in the directory specified.
Here is the directory structure that was created.
I am disturbed by this behavior. It is important to me that all the files belonging to one of my projects be stored in the directory of my choice.
This behavior raises two questions.
- Why does Mathematica do this?
- What work-arounds might be used to ameliorate its effects?