if (atts != null && atts.isDir()) throw new VirtualArtifactException(this, "A directory already exists by this name: " + name);
return new SecureFTPFile((SecureFTP)location, this, path.append(name), atts);
}
protected VirtualDirectory getDirectoryFor (SftpATTRS atts, String name) {
if (atts != null && !atts.isDir()) throw new VirtualArtifactException(this, "A file already exists by this name: " + name);
return new SecureFTPDirectory((SecureFTP)location, this, path.append(name), atts);
}