filepath.Base() versus filepath.Dir()

Report a typo

Below you will see different outputs of paths obtained from the filepath.Base() and filepath.Dir() functions.

Match each of the output paths with the correct function used to obtain them.

Match the items from left and right columns
impostor.png
/among_us/img
src
dracula-ui/src
utils
fiber
filepath.Base("fiber/utils")
filepath.Base("dracula-ui/src/")
filepath.Dir("/among_us/img/impostor.png")
filepath.Dir("dracula-ui/src/")
filepath.Base("/among_us/img/impostor.png")
filepath.Dir("fiber/utils")
___

Create a free account to access the full topic