return fileName.substring(dirPath.length() + 1);
String relativeFileName = fileName.substring(dirPath.length()); File file = new File(relativeFileName); LinkedList<String> partList = new LinkedList<String>(); do { partList.addFirst(file.getName()); } while ((file = file.getParentFile()) != null);  StringBuffer buf = new StringBuffer(); for (String part : partList) { if (buf.length() > 0) { buf.append('/'); } buf.append(part); }  return buf.toString();
	String getResourceName(String fileName) {		// FIXME: there is probably a more robust way to do this		String dirPath = directory.getPath();		if (!fileName.startsWith(dirPath)) {			throw new IllegalStateException("Filename " + fileName + " not inside directory "+ dirPath);		}		return fileName.substring(dirPath.length() + 1);	}