9091929394959697
List<String> filenames = FileUtils.listRecursively(targetDirectory, strategy.getFilenameFilter()); for (String name : filenames) { File f = new File(targetDirectory, name); if (!f.canWrite()) throw new ReadOnlyLockFailureException(f); } }
183184185186187188189190
public void approveLock(ConcurrencyLock lock, String extraInfo) throws LockFailureException { for (String name : listResourceNames()) { File f = new File(directory, name); if (f.canWrite() == false) throw new ReadOnlyLockFailureException(f); } }