dialog – Pre-filter incompatible items in a file picker

I’m implementing a file picker to let users pick a simple textual file.
The prerequisite is the file must be writable.

enter image description here

However, a user might input the file’s path by hand too.

enter image description here

Should I filter out the non-writable files in the dialog already?
The downside is that would result in a duplicated validation.