public List<FileWrap> queryFiles(String path, Boolean valid){
File parent = new File(realPathResolver.get(path));
if (parent.exists()) {
File[] files;
files = parent.listFiles();
Arrays.sort(files, new FileComparator());
List<FileWrap> list = new ArrayList<FileWrap>(files.length);
CmsFile file;
for (File f : files) {
file=fileMng.findByPath(f.getName());
if(valid!=null){