mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-17 23:56:05 +02:00
Properly truncate files
This commit is contained in:
parent
546e5f7e5e
commit
9158002a42
2 changed files with 8 additions and 7 deletions
|
@ -175,12 +175,13 @@ namespace System.IO
|
|||
createKind = .CreateIfNotExists;
|
||||
case .Create:
|
||||
createKind = .CreateAlways;
|
||||
createFlags |= .Truncate;
|
||||
case .Open:
|
||||
createKind = .OpenExisting;
|
||||
case .OpenOrCreate:
|
||||
createKind = .OpenAlways;
|
||||
case .Truncate:
|
||||
createKind = .CreateAlways;
|
||||
createKind = .OpenExisting;
|
||||
createFlags |= .Truncate;
|
||||
case .Append:
|
||||
createKind = .CreateAlways;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue