Replace File.name with File.path for latest SDK