@Override public void copy(Directory to, String src, String dest, IOContext context) throws IOException { ensureOpen(); // lets the default implementation happen, so we properly open an input and create an output super.copy(to, src, dest, context); }