FACT++  1.0
bool DimWriteStatistics::SetCurrentFolder ( const std::string &  folder)

Configures that current folder where files are written to.

Sets the current folder

Parameters
folderthe path to the folder

Definition at line 137 of file DimWriteStatistics.cc.

References MessageImp::Error(), fCurrentFolder, and fLog.

Referenced by DataLogger::EvalOptions(), GetFileSizeOnDisk(), and EventBuilderWrapper::InitRunNumber().

138 {
139  struct statvfs vfs;
140  if (statvfs(folder.empty()?".":folder.c_str(), &vfs))
141  {
142  fLog.Error("statvfs() failed for '"+folder+"'... ignoring it.");
143  return false;
144  }
145 
146  fCurrentFolder = folder.empty()?".":folder;
147  return true;
148 }
int Error(const std::string &str)
Definition: MessageImp.h:49
std::string fCurrentFolder

+ Here is the call graph for this function:

+ Here is the caller graph for this function: