}
public SVNAdminArea createVersionedDirectory(File dir, String url, String rootURL, String uuid, long revNumber, boolean createMyself, SVNDepth depth) throws SVNException {
dir = createMyself ? getRoot() : dir;
dir.mkdirs();
File adminDir = createMyself ? getAdminDirectory() : new Resource(dir, SVNFileUtil.getAdminDirectoryName());
adminDir.mkdir();
SVNFileUtil.setHidden(adminDir, true);
// lock dir.
File lockFile = createMyself ? myLockFile : new Resource(adminDir, "lock");
SVNFileUtil.createEmptyFile(lockFile);
SVNAdminUtil.createReadmeFile(adminDir);
SVNFileUtil.createEmptyFile(createMyself ? getAdminFile("empty-file") : new Resource(adminDir, "empty-file"));
File[] tmp = {
createMyself ? getAdminFile("tmp") : new Resource(adminDir, "tmp"),
createMyself ? getAdminFile("tmp" + Resource.separatorChar + "props") : new Resource(adminDir, "tmp" + Resource.separatorChar + "props"),
createMyself ? getAdminFile("tmp" + Resource.separatorChar + "prop-base") : new Resource(adminDir, "tmp" + Resource.separatorChar + "prop-base"),
createMyself ? getAdminFile("tmp" + Resource.separatorChar + "text-base") : new Resource(adminDir, "tmp" + Resource.separatorChar + "text-base"),
createMyself ? getAdminFile("tmp" + Resource.separatorChar + "wcprops") : new Resource(adminDir, "tmp" + Resource.separatorChar + "wcprops"),
createMyself ? getAdminFile("props") : new Resource(adminDir, "props"),
createMyself ? getAdminFile("prop-base") : new Resource(adminDir, "prop-base"),
createMyself ? getAdminFile("text-base") : new Resource(adminDir, "text-base"),
createMyself ? getAdminFile("wcprops") : new Resource(adminDir, "wcprops")};
for (int i = 0; i < tmp.length; i++) {
tmp[i].mkdir();
}
SVNAdminUtil.createFormatFile(adminDir);