refactor(fs): reduce the repetition in exists.ts
#5088
Merged
This job succeeded
Loading
exists.ts
#5088