filesystem::keep_in_root() implementation.