TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
John Riker
NA
85
15.8k
Is this case sensitive?
Nov 16 2020 9:41 AM
I have a routine that loops thru a bunch of files on my hard drive and does some things to them and saves them to another format. In my app config file I have:
<
add
key
=
"extensionstest"
value
=
".mp4,.mov,.avi,.mpg,.wmv,.mkv,.m4v,.ts"
/>
In my code I have:
foreach
(
string
file
in
Directory.EnumerateFiles(rootfolder,
"*.*"
, searchOption)
.Where(s => extensions.Any(ext => ext == Path.GetExtension(s))))
If a file is .mpg it processes it but noticing .MPG is being ignored or seems to unless something else is going on. Is the above even being on Windows case sensitive?
Thanks.
JR
Reply
Answers (
2
)
dataTable and session variable.
The browser was unable to communicate with the server HTTP error