Make ArchiveFactory.Open case sensitive #427

Closed
opened 2026-01-29 22:11:49 +00:00 by claunia · 4 comments
Owner

Originally created by @AdamJurga on GitHub (Dec 9, 2020).

Hi Guys,

Is it possible to make ArchiveFactory.Open() case sensitive?

I'm reading some files from FTP server which is case sensitive and I can have two different files with "the same" name.
TEST.zip and test.zip for example.

When I use ArchiveFactory.Open() always "test.zip" file is being picked, no matter what case I use (TEST.zip, test.zip, Test.zip, etc.).

Thanks,
Adam

Originally created by @AdamJurga on GitHub (Dec 9, 2020). Hi Guys, Is it possible to make ArchiveFactory.Open() case sensitive? I'm reading some files from FTP server which is case sensitive and I can have two different files with "the same" name. TEST.zip and test.zip for example. When I use ArchiveFactory.Open() always "test.zip" file is being picked, no matter what case I use (TEST.zip, test.zip, Test.zip, etc.). Thanks, Adam
Author
Owner

@adamhathcock commented on GitHub (Dec 9, 2020):

Case sensitivity is based on your file system (when using string or FileInfo overload) or your own code when using the Stream overload.

@adamhathcock commented on GitHub (Dec 9, 2020): Case sensitivity is based on your file system (when using string or FileInfo overload) or your own code when using the Stream overload.
Author
Owner

@AdamJurga commented on GitHub (Dec 9, 2020):

It's case insensitive. This is why I'm asking 😊.
I would like to ArchiveFactory.Open() respect case sensitivity instead of using FindFirstFile. Is there a way?

@AdamJurga commented on GitHub (Dec 9, 2020): It's case insensitive. This is why I'm asking 😊. I would like to ArchiveFactory.Open() respect case sensitivity instead of using FindFirstFile. Is there a way?
Author
Owner

@adamhathcock commented on GitHub (Dec 9, 2020):

I'm saying my code isn't making a decision on that when using ArchiveFactory.Open. It's based on filesystem and the base class library.

@adamhathcock commented on GitHub (Dec 9, 2020): I'm saying my code isn't making a decision on that when using ArchiveFactory.Open. It's based on filesystem and the base class library.
Author
Owner

@AdamJurga commented on GitHub (Dec 9, 2020):

Roger that, thank you sir!

@AdamJurga commented on GitHub (Dec 9, 2020): Roger that, thank you sir!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#427