Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
Get certains files from a folder sing C# and/or LINQ
yamid
8y
232
1
Reply
Hi All,
I want to get "full path" of all files that
1. have the extension "*.bpp" (except one file that ends with 279.bpp), and
2. their sizes should be greater than 50 kb.
I have this code, but I can not add another filter based on the file size
var files0 = Directory.GetFiles(mydirectoryPath,
"*.bpp"
).Where(name =>
!name.EndsWith(
"279.bpp"
);
Please note that I need the full path of all files that pass those two filters.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
What is cross site tracing ?
how to move one table data to another table in angularjs