public VirtualFile createChildDirectory(final Object requestor, final String name) throws IOException {
validateName(name);
return ourPersistence.createChildDirectory(requestor, this, name);
}
private static void validateName(String name) throws IOException {
<BUG>if (name == null || name.length() == 0) throw new IOException("File name cannot be empty");
</BUG>
if (name.indexOf('/') >= 0 || name.indexOf(File.separatorChar) >= 0) {
throw new IOException("File name cannot contain file path separators: '" + name + "'");
}

public VirtualFile createChildDirectory(final Object requestor, final String name) throws IOException {
validateName(name);
return ourPersistence.createChildDirectory(requestor, this, name);
}
private static void validateName(String name) throws IOException {
if (name == null || name.isEmpty()) throw new IOException("File name cannot be empty");
if (name.indexOf('/') >= 0 || name.indexOf(File.separatorChar) >= 0) {
throw new IOException("File name cannot contain file path separators: '" + name + "'");
