Lines Matching refs:fcp
449 fcp := findCommandParser{
454 err := fcp.parse()
456 return fcp.fc, err
458 if len(fcp.fc.finddirs) == 0 {
459 fcp.fc.finddirs = append(fcp.fc.finddirs, ".")
461 if fcp.fc.chdir != "" {
462 fcp.fc.chdir = filepathClean(fcp.fc.chdir)
464 if filepath.IsAbs(fcp.fc.chdir) {
465 return fcp.fc, errFindAbspath
467 for _, dir := range fcp.fc.finddirs {
469 return fcp.fc, errFindAbspath
472 glog.V(3).Infof("find command: %#v", fcp.fc)
475 _, ents := fsCache.readdir(filepathClean(fcp.fc.testdir), unknownFileid)
477 glog.V(1).Infof("find: testdir %s - not dir", fcp.fc.testdir)
478 return fcp.fc, errFindNoSuchDir
480 _, ents = fsCache.readdir(filepathClean(fcp.fc.chdir), unknownFileid)
482 glog.V(1).Infof("find: cd %s: No such file or directory", fcp.fc.chdir)
483 return fcp.fc, errFindNoSuchDir
486 return fcp.fc, nil
824 fcp := findleavesCommandParser{
829 err := fcp.parse()
831 return fcp.fc, err
833 glog.V(3).Infof("findleaves command: %#v", fcp.fc)
834 return fcp.fc, nil