Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of the new Filters parameters #6

Closed
ericcanadas opened this issue Apr 9, 2024 · 8 comments
Closed

Support of the new Filters parameters #6

ericcanadas opened this issue Apr 9, 2024 · 8 comments

Comments

@ericcanadas
Copy link

It's possible to add the support of the new Filters parameter which allows to specify multiple extensions...

@melenaos
Copy link
Owner

melenaos commented Apr 9, 2024

Can you send a usage example? How would you use it in the original type?

@melenaos
Copy link
Owner

melenaos commented Apr 10, 2024

You can use the existing Filter property

        /// <summary>
        /// Gets or sets the filter string, used to determine what files are monitored in a directory.
        /// </summary>
        /// <value>The filter string. The default is "*.*" (Watches all files.)</value>
        public string Filter
        {
            get
            {
                return _fileSystemWatcher.Filter;
            }
            set
            {
                _fileSystemWatcher.Filter = value;
            }
        }

@ericcanadas
Copy link
Author

ericcanadas commented Apr 10, 2024

Hi,
I want to monitor multiple file extensions
I see this thread in my search but your good implementation don't have this fonctionnality :
https://stackoverflow.com/questions/6965184/how-to-set-filter-for-filesystemwatcher-for-multiple-file-types#answer-61145821

@melenaos
Copy link
Owner

melenaos commented Apr 10, 2024 via email

@ericcanadas
Copy link
Author

Yes, I tried this but it's not working !

@melenaos
Copy link
Owner

You can get the new version now.
I hope that helps!

@ericcanadas
Copy link
Author

Great !
It works like a charm ! ;-)
Thanks for the responsiveness !!

@melenaos
Copy link
Owner

Thanks for testing it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants