我正在尝试从Groovy中的某个文件夹获取文件列表,并且返回的Filelist为null 我正在尝试的代码是:
//我能够成功建立连接
def p4Server = getp4connection()
def filePath = "//path/..."
final List<IFileSpec> checkSpecList =
FileSpecBuilder.makeFileSpecList(filePath)
println "checkSpecList:" + checkSpecList
List<IFileSpec> fileList = p4Server.getDepotFiles(
FileSpecBuilder.makeFileSpecList(filePath), null);
//here the fileList is coming as null
println "fileList:" + fileList
我尝试了多种指定路径的方法,但似乎无济于事,有人可以帮我吗