Skip to content

Commit

Permalink
Feature: Added 2gb splitting size for archives (files-community#14193)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 authored Dec 10, 2023
1 parent aa9ed8b commit f6d62ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Files.App/Dialogs/CreateArchiveDialog.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ public string Password
new(ArchiveSplittingSizes.Cd650, ToSizeText(650), "CD".GetLocalizedResource()),
new(ArchiveSplittingSizes.Cd700, ToSizeText(700), "CD".GetLocalizedResource()),
new(ArchiveSplittingSizes.Mo1024, ToSizeText(1024)),
new(ArchiveSplittingSizes.Mo2048, ToSizeText(2048)),
new(ArchiveSplittingSizes.Fat4092, ToSizeText(4092), "FAT".GetLocalizedResource()),
new(ArchiveSplittingSizes.Dvd4480, ToSizeText(4480), "DVD".GetLocalizedResource()),
new(ArchiveSplittingSizes.Mo5120, ToSizeText(5120)),
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Utils/Archives/CompressArchiveModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public class CompressArchiveModel : ICompressArchiveModel
ArchiveSplittingSizes.Mo10 => 10 * 1000 * 1000L,
ArchiveSplittingSizes.Mo100 => 100 * 1000 * 1000L,
ArchiveSplittingSizes.Mo1024 => 1024 * 1000 * 1000L,
ArchiveSplittingSizes.Mo2048 => 2048 * 1000 * 1000L,
ArchiveSplittingSizes.Mo5120 => 5120 * 1000 * 1000L,
ArchiveSplittingSizes.Fat4092 => 4092 * 1000 * 1000L,
ArchiveSplittingSizes.Cd650 => 650 * 1000 * 1000L,
Expand Down
5 changes: 5 additions & 0 deletions src/Files.Core/Data/Enums/ArchiveSplittingSizes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public enum ArchiveSplittingSizes
/// </summary>
Mo1024,

/// <summary>
/// Split into each 2 GB.
/// </summary>
Mo2048,

/// <summary>
/// Split into each 5 GB.
/// </summary>
Expand Down

0 comments on commit f6d62ce

Please sign in to comment.