How to get all files in one drive mapped as network path

ali veli 1 Reputation point
2024-01-12T23:21:11.7333333+00:00

Hi i'm trying to get all files in one drive folder mapped as network path but im getting this error Could not find file '\d.docs.live.net@ssl\davwwwroot\xxxxxxxxxxxxxx..' I noticed something there are two folder in the list like below.

\\d.docs.live.net@ssl\davwwwroot\xxxxxxxxxxxxxx\. \\d.docs.live.net@ssl\davwwwroot\xxxxxxxxxxxxxx\..

I'm getting error because of this two folder when i ignore this two i can get the files but this time all file paths end with \0 as in the photo below and im getting this error Illegal characters in path. Arg_ParamName_Name'. How can i fix this problem and get list of all files? Ekran görüntüsü 2024-01-13 021654

Microsoft 365 and Office | OneDrive | For business | Windows
Developer technologies | C#
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 30,046 Reputation points Microsoft External Staff
    2024-01-15T02:41:51.8833333+00:00

    Hi,

    I suggest you post this issue to OneDrive for Developer forum:

    https://techcommunity.microsoft.com/t5/onedrive-developer/bd-p/OneDriveDeveloper

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.

    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.