Add git-lfs support

This commit is contained in:
Oliver Milke
2017-05-19 17:27:18 +02:00
parent 9b932a325e
commit 33ea2273b0
16 changed files with 914 additions and 51 deletions

View File

@@ -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 */