Skip to content

Commit cead84a

Browse files
committed
Temporary disable disk space check
DriveInfo constructor is throwing NotImplementedException on Windows. Will have to get around it somehow.
1 parent 1e33973 commit cead84a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Assets/PatchKit Patcher/Scripts/AppUpdater/Commands/CheckDiskSpaceCommand.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ public CheckDiskSpaceCommand(AppDiffSummary diffSummary, string localDirectoryPa
3636

3737
public void Execute(CancellationToken cancellationToken)
3838
{
39-
var requiredDiskSpace = GetRequiredDiskSpace();
39+
// TODO: DriveInfo constructor is throwing NotImplementedException on Windows
40+
// http://redmine.patchkit.net/issues/454?issue_count=25&issue_position=2&next_issue_id=322&prev_issue_id=455#note-3
41+
// Will have to get around that somehow
42+
43+
/*var requiredDiskSpace = GetRequiredDiskSpace();
4044
4145
var dir = new FileInfo(_localDirectoryPath);
4246
var drive = new DriveInfo(dir.Directory.Root.FullName);
@@ -51,7 +55,7 @@ public void Execute(CancellationToken cancellationToken)
5155
throw new NotEnoughtDiskSpaceException("There's no enough disk space to install/update this application. " +
5256
"Available free space " + drive.AvailableFreeSpace +
5357
" < required disk space " + requiredDiskSpace);
54-
}
58+
}*/
5559
}
5660

5761
private long GetRequiredDiskSpace()

0 commit comments

Comments
 (0)