mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
merge with branch 1.x
This commit is contained in:
@@ -75,4 +75,13 @@ public final class FileBlob implements Blob {
|
||||
return new FileOutputStream(file);
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getSize() {
|
||||
if (this.file.isFile()) {
|
||||
return this.file.length();
|
||||
} else {
|
||||
//to sum up all other cases, in which we cannot determine a size
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user