我正在尝试使用FileUtils获取名称中包含“messages_”的所有子目录
Collection<File> filesToRead = FileUtils.listFiles(new File(fromDirectory),
new DirectoryFileFilter() {
@Override
public boolean accept(File dir, String name) {
if (dir.isDirectory() && dir.getName().contains("messages_")){
return true;
}
return false;
}
}, TrueFileFilter.INSTANCE);
这对我不起作用。如何使用FileUtils实现这一目标?
答案 0 :(得分:0)
Build {...} Dictionary (Output to Variable: requestHeaders)
then Call [site url]/_api/web/Lists/GetByTitle('[Library Name to Query]') HTTP web service with request (ResponseContent to Variable: responseContent|ResponseHeaders to Variable: responseHeaders|ResponseStatusCode to Variable: responseCode)
then Get d/ItemCount from Variable: responseContent (Output to Variable: count)
If Variable: count is less than 5000
[Proceed as normal]
If Variable: count is greater than or equal to 5000
[Save to secondary library and notify admin to do some cleanup]