MCPcopy
hub / github.com/flowjs/flow.js / vaild

Method vaild

samples/java/src/resumable/js/upload/ResumableInfo.java:44–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 public String resumableFilePath;
43
44 public boolean vaild(){
45 if (resumableChunkSize < 0 || resumableTotalSize < 0
46 || HttpUtils.isEmpty(resumableIdentifier)
47 || HttpUtils.isEmpty(resumableFilename)
48 || HttpUtils.isEmpty(resumableRelativePath)) {
49 return false;
50 } else {
51 return true;
52 }
53 }
54 public boolean checkIfUploadFinished() {
55 //check if upload finished
56 int count = (int) Math.ceil(((double) resumableTotalSize) / ((double) resumableChunkSize));

Callers 1

getResumableInfoMethod · 0.95

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected