if (isManagedDir(files[i].getParentFile())) { pathsList.add(toString(files[i]));
File file = files[i]; File dir; if (file.isDirectory()) { dir = file; } else { dir = file.getParentFile(); } if (isManagedDir(dir)) { pathsList.add(toString(file));
	public ISVNStatus[] getStatus(File[] files) throws SVNClientException {                ISVNStatus[] statuses = new ISVNStatus[files.length];                 // all files that are in nonmanaged dirs are unversioned        ArrayList pathsList = new ArrayList();        for (int i = 0; i < files.length;i++) {            if (isManagedDir(files[i].getParentFile())) {                pathsList.add(toString(files[i]));            } else {                statuses[i] = new CmdLineStatusUnversioned(files[i],false);            }        }        String[] paths = (String[])pathsList.toArray(new String[pathsList.size()]);                // we must do a svn status and svn info only on resources that are in versioned dirs        // because otherwise svn will stop after the first "svn: 'resource' is not a working copy"         CmdLineStatuses cmdLineStatuses;        try {            String cmdLineInfoStrings = _cmd.info(paths);            String cmdLineStatusStrings = _cmd.status(paths, false, false);            cmdLineStatuses = new CmdLineStatuses(cmdLineInfoStrings,cmdLineStatusStrings);		} catch (CmdLineException e) {			throw SVNClientException.wrapException(e);		}                for (int i = 0; i < cmdLineStatuses.size();i++) {            ISVNStatus status = cmdLineStatuses.get(i);            for (int j=0; j < files.length;j++) {                if (files[j].getAbsoluteFile().equals(status.getFile())) {                    statuses[j] = status;                }            }        }                return statuses;        	}