Filesystem related helpers.