if `path` is `null` we shouldn't call this (or we should handle the exception)