How to resolve the error: Directory is ambiguous, imported from namespaces or type, Microsoft.Graph System.IO

can anyone help me out why this error is showing?
Everytime whenever I am taking the directory.getfiles, it is showing the same error
Please find the attachment.

Screen.docx (138.5 KB)

1 Like

@THE_DARK_KNIGHT
In this Case give a try and use the füll qualified Name. System.io.directory.get…

24 Likes

Hi,
Yes i have tried the way you guided System.IO.DIrectory.getfile… is a solution for this.Thanks.

3 Likes

Hi @POORNA_KANNAN,
can you provide the Entire Line hear i am getting the same Error

Hi all,

System.IO.File.ReadAllBytes(“Your File Path”)

This will convert to bytes.

Thanks.

Hi All,

System.IO.Directory.GetFiles(“FolderPath”)

This will reslove above issue

2 Likes