Skip to content

Commit

Permalink
Case insensitive support
Browse files Browse the repository at this point in the history
  • Loading branch information
miyabe committed Oct 4, 2022
1 parent 9a55f62 commit e575385
Show file tree
Hide file tree
Showing 8 changed files with 246 additions and 91 deletions.
5 changes: 5 additions & 0 deletions EncFSy_console/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ void ShowUsage() {
" --sector-size Bytes (ex. 512)\t\t Sector Size of the volume. This will behave on the disk file size.\n"
" --paranoia AES-256bit / changed name IV / external IV chaining \n"
" --alt-stream Enable NTFS alternate data stream.\n"
" --case-insensitive Ignore case in filenames.\n"
" --reverse Encrypt rootdir to mountPoint.\n"
"Examples:\n"
"\tencfs.exe C:\\Users M:\t\t\t\t\t # EncFS C:\\Users as RootDirectory into a drive of letter M:\\.\n"
Expand Down Expand Up @@ -114,6 +115,7 @@ int __cdecl wmain(ULONG argc, PWCHAR argv[]) {
EncFSOptions efo;
ZeroMemory(&efo, sizeof(EncFSOptions));
efo.AltStream = FALSE;
efo.CaseInsensitive = FALSE;
efo.Reverse = FALSE;
efo.Timeout = 30000;
efo.SingleThread = FALSE;
Expand Down Expand Up @@ -184,6 +186,9 @@ int __cdecl wmain(ULONG argc, PWCHAR argv[]) {
else if (wcscmp(argv[command], L"--alt-stream") == 0) {
efo.AltStream = TRUE;
}
else if (wcscmp(argv[command], L"--case-insensitive") == 0) {
efo.CaseInsensitive = TRUE;
}
else if (wcscmp(argv[command], L"--reverse") == 0) {
efo.Reverse = TRUE;
}
Expand Down
39 changes: 34 additions & 5 deletions EncFSy_gui/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions EncFSy_gui/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ private void mount_Click(object sender, EventArgs e)
{
args += " --dokan-mount-manager";
}
if (this.caseInsensitiveCheckBox.Checked)
{
args += " --case-insensitive";
}
if (this.readOnlyCheckBox.Checked)
{
args += " --dokan-write-protect";
}
if (this.reverseCheckBox.Checked)
{
args += " --reverse";
Expand Down Expand Up @@ -228,5 +236,10 @@ private void checkBox1_CheckedChanged_1(object sender, EventArgs e)
{

}

private void checkBox1_CheckedChanged_2(object sender, EventArgs e)
{

}
}
}
Loading

0 comments on commit e575385

Please sign in to comment.