Definition at line 432 of file FileSystem.h. References Impala::Util::IOBufferFile::FileExists(), Impala::FileNameConcat(), ILOG_DEBUG, ILOG_ERROR, mOverride, and Impala::StringResolveEnv(). Referenced by GetWritableFile(). 00434 { 00435 if (begin == end) 00436 { 00437 ILOG_ERROR("GetWritableFile: no search path"); 00438 return String(""); 00439 } 00440 String d = StringResolveEnv(*begin); 00441 String path = FileNameConcat(d, file); 00442 ILOG_DEBUG("GetWritableFile: trying " << path); 00443 if (Util::IOBufferFile::FileExists(path)) 00444 { 00445 if (! (mOverride || silent)) // silent implies "just checking" 00446 { 00447 if (!silent) 00448 ILOG_ERROR(path << " already exists, will not override!"); 00449 return String(""); 00450 } 00451 } 00452 return path; 00453 }
Here is the call graph for this function: ![]()
|