@Override
	public int rename(String from, String to) throws FuseException {
		try {
			if (fileSystem.isReadOnly())
				return Errno.EROFS;
			fileSystem.rename(from, to);
		} catch (PathNotFoundException e) {
			return Errno.ENOENT;
		} catch (DestinationAlreadyExistsException e) {
			return Errno.EEXIST;
		} catch (AccessDeniedException e) {
			return Errno.EACCES;
		}
		return 0;
	}