Discussion posts and replies are publicly visible
Can you please tell me the scenario? like what kind of validation you want?
When I downloaded the zip package the directory inside the package should match the value I've goven in textfield say for example 100428217
You can get a list of files and folders using the folder() function applied to the parent folder. There are also plugins which allow you to search for files by name.