Skip to content

Commit

Permalink
feat(cli): check file size limit in sync
Browse files Browse the repository at this point in the history
  • Loading branch information
thetric committed Mar 16, 2017
1 parent cbdf153 commit 92abe32
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ final class SyncHandlerImpl implements SyncHandler {
}
private boolean isUnderFileLimit(CourseFile file) {
assert file
// TODO impl file size from ilias item!
true
if (preferences.maxFileSize > 0) {
return file.size < preferences.maxFileSize
}
return true
}
private void syncAndSaveFile(Path path, CourseFile file) {
Expand Down

0 comments on commit 92abe32

Please sign in to comment.