smart file path