I’m trying to check the file name using getfiles I know.
But what does ‘directory.getfiles(path,".")’ mean?
Directory. GetFiles is a Fuction the Used to fetch the Files From the Folders.
Directory -->Specfies Your Folder.
GetFiles—>Specifies the Files in the Folder.
(“Path”,“FilterConditionBased on File Type”)–>Specfies (“YourDirectoryPath/”,"*.xlsx/txt/…")
“.” means you read all files regardless what is the name and what is the file type.
If you want special name you can write → “Yourfilename."
If you want special file type but the name is not important, for example only Excel → ".xlsx”
But if you know the name and the file type, you can set both here → “Yourfilename.xlsx”
It means like
Your current Directory of the local machine.Get the files in the (Specified path, which only has the extension of pdf )