* @return the added file entry
*/
public final synchronized FSEntry addFile(String name) throws IOException {
log.debug("<<< BEGIN addFile " + name + " >>>");
if (!canWrite())
throw new ReadOnlyFileSystemException("Filesystem or directory is mounted read-only!");
if (getEntry(name) != null) {
throw new IOException("File or directory already exists: " + name);
}
FSEntry newEntry = createFileEntry(name);