If empty path is specified, then return nullptr