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)

In this Case give a try and use the füll qualified Name.…

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