Some temp files are being cached to Environment.GetFolderPath(Environment.SpecialFolder.) + "\\Company\\App";
.
At app start the virtual AppData location is assigned. Everything seems to be okay and files are being generated in the virtual directory (C:\Users\User\AppData\Local\Packages\(hash)\LocalCache\Local\Company\App\file.file
) as they should be.
After some time while trying to copy files in the same directory it throws:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\User\AppData\Local\Company\App\file.file
.
The file exists in the virtual directory.
Am I missing something?