maybe you can check for the `filepath` type (string/buffer).... & use the same function.
This creates redundant code.
PS: feel free to rename the variable. :dancer: