[Filesystem] Fix regression introduced in 10dea948