Closed CyberSinh closed 6 years ago
curious.. how about other unc/local paths? It think that the problem is not the path itself (\\Ds216j\sauvegardes\Documents), but the next folder or file that is returned by the enumeration. InvalidOperationException can point to a cyclic operation.
Ok . How can i see the "next folder or file returned" ? NAS logs or PC logs? Some folder are OK , other not. Thanks Regards
Hm.. the only way I can think of is using the VS debugger.
Hi Yomodo. You will find attached the IntelliTrace file sent by the end user affected by this issue. Hope you will find it useful to diagnoose the issue. Thanks.
Hi Yomodo. Was this iTrace file useful to you? Do you need more information?
Hi CyberSinh, thanks for this. Will analyze this in the next days.
Unfortunately, I only have access to VS 2015 Enterprise, loading the .Itrace throws a waring that I'm not able to view all the information.
However, the Exception is thrown here: https://github.com/alphaleonis/AlphaFS/blob/3e87fdec1d8cb15f2ecaf9f11ad6e1f62d17103d/AlphaFS/Filesystem/FindFileSystemEntryInfo.cs#L427
If you can place a breakpoint and run debug again, you should be able to see exactly what data win32FindData and regularPath contain. Hopefully this can tell us more.
Hi Yomodo, You will find below a screenshot of Visual Studio 2017 with the iTrace log file opened:
You can view the win32FindData variable data.
I think the fix is simple; could you change this line: https://github.com/alphaleonis/AlphaFS/blob/3e87fdec1d8cb15f2ecaf9f11ad6e1f62d17103d/AlphaFS/Filesystem/FindFileSystemEntryInfo.cs#L303
to: if (null != handle && lastError != Win32Errors.NO_ERROR)
Thank you very much Yomodo!
It works? Cool!
I will propose a modified version of AlphaFS to the user concerned by this issue to check if the patch works. I'll keep you informed.
I'm sorry but the user concerned has told me that the patch does not work. The same error always occurs. Here is the new IntelliTrace log: AlphaFS2.zip
I've made a new branch #441 based on the latest master. Could you test again with this?
Everything works fine with this new branch. You can merge it. Thank you.
Any timinig for a new maintenance nuget release?
Soon, I'll start preparing.
Hi,
If I run these commands under PowerShell:
I get the following output:
As you can see, the target folder is well identified as a directory by AlphaFS. However, if I try to enumerate the contents of this folder, I get an error "the target directrory is a file, not a directory". Does anybody know why?
Thanks.