mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 09:25:43 +01:00
Add git-lfs support
This commit is contained in:
@@ -119,6 +119,19 @@ 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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//~--- fields ---------------------------------------------------------------
|
||||
|
||||
/** Field description */
|
||||
|
||||
Reference in New Issue
Block a user