Backed up file appearing in get file list

Hi,

I am trying to get a list of files in a location. The folder is empty but it is bringing in all the backup files. How can i not see these?

image

1 Like

Hi this expression would help you resolve this
List_filepath = Directory.GetFiles(“yourfolderpath”,”*.db”).ToList()

Where list_filepath is a variable of type list of string
Cheers @Automater999

Hi,

Would this not give me the “thumbs.db” file above. I want to return files that are not backup files. ie none of the above .

1 Like

May I know the file name and file type of that back up file
Cheers @Automater999

I actually don’t know where they are coming from as i can’t see them myself in the location.It is just when i run the bot it is throwing them back.