On a second look this code is wrong - in case of external mounted file systems mkdir will fail.
We should call View::mkdir()