@Override
	public int mkdir(String path, int mode) throws FuseException {
		try {
			fileSystem.createDirectory(path);
			UnixPermissions perms = new UnixPermissions(mode);
			if (options.isUnixOwnerImpersonateNewFiles())
			{
				perms.setUid(Environment.getUserId());
				perms.setGid(Environment.getGroupId());
			}
			fileSystem.setUnixPermissions(path, perms);
		} catch (AccessDeniedException e) {
			return Errno.EACCES;
		} catch (PathNotFoundException e) {
			return Errno.ENOTDIR;
		} catch (DestinationAlreadyExistsException e) {
			return Errno.EEXIST;
		} catch (UnsupportedFeatureException e) {
		}
		return 0;
	}