mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
Make ArchiveFactory.Open case sensitive #427
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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.
@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?
@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.
@AdamJurga commented on GitHub (Dec 9, 2020):
Roger that, thank you sir!