Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

String Impala::Util::Database::GetWritableFileLocal ( StringListCI  begin,
StringListCI  end,
CString  file,
bool  silent 
) [inline, private]

Definition at line 469 of file Database.h.

References Impala::Util::IOBufferFile::FileExists(), Impala::FileNameConcat(), ILOG_DEBUG, ILOG_ERROR, mOverride, and Impala::StringResolveEnv().

Referenced by GetWritableFile().

00471     {
00472         if (begin == end)
00473         {
00474             ILOG_ERROR("GetWritableFile: no search path");
00475             return String("");
00476         }
00477         String d = StringResolveEnv(*begin);
00478         String path = FileNameConcat(d, file);
00479         ILOG_DEBUG("GetWritableFile: trying " << path);
00480         if (IOBufferFile::FileExists(path))
00481         {
00482             if (! (mOverride || silent))   // silent implies "just checking"
00483             {
00484                 if (!silent)
00485                     ILOG_ERROR(path << " already exists, will not override!");
00486                 return String("");
00487             }
00488         }
00489         return path;
00490     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:24:12 2011 for ImpalaSrc by  doxygen 1.5.1