Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0opslab/opslabJutil
/ deleteBigFile
Method
deleteBigFile
src/main/java/com/opslab/util/FileUtil.java:452–454 ·
view source on GitHub ↗
快速的删除超大的文件 @param file 需要处理的文件 @return 是否成功
(File file)
Source
from the content-addressed store, hash-verified
450
* @
return
是否成功
451
*/
452
public
final
static
boolean deleteBigFile(File file) {
453
return
cleanFile(file) && file.delete();
454
}
455
456
457
/**
Callers
2
testDeleteBigFile
Method · 0.95
testDeleteBigFile
Method · 0.95
Calls
2
cleanFile
Method · 0.95
delete
Method · 0.80
Tested by
2
testDeleteBigFile
Method · 0.76
testDeleteBigFile
Method · 0.76