There may be a similar method in `class phpbb_filesystem`.