Definition at line 64 of file XrdFrmPurge.cc.
◆ XrdFrmPurgeDir()
XrdFrmPurgeDir::XrdFrmPurgeDir |
( |
| ) |
|
|
inline |
◆ ~XrdFrmPurgeDir()
XrdFrmPurgeDir::~XrdFrmPurgeDir |
( |
| ) |
|
|
inline |
◆ isEmpty()
void XrdFrmPurgeDir::isEmpty |
( |
struct stat * |
dStat, |
|
|
const char * |
dPath, |
|
|
const char * |
lkFN |
|
) |
| |
|
virtual |
Implements XrdOucNSWalk::CallBack.
Definition at line 86 of file XrdFrmPurge.cc.
90 static const char *What = (
Config.Test ?
"Zorch " :
"Purged ");
93 char Parent[MAXPATHLEN+1], *Slash;
108 strcpy(Parent, dPath);
110 if (Parent[n-1] ==
'/') Parent[--n] =
'\0';
111 if ((Slash = rindex(Parent,
'/')))
113 if (
stat(Parent, &pStat)) Slash = 0;
120 {times.actime = pStat.st_atime;
121 times.modtime = pStat.st_mtime;
122 utime(Parent, ×);
133 localtime_r(&(dStat->st_mtime), &tNow);
134 sprintf(sbuff,
"%02d%02d%02d %02d:%02d:%02d ",
135 tNow.tm_year-100, tNow.tm_mon+1, tNow.tm_mday,
136 tNow.tm_hour, tNow.tm_min, tNow.tm_sec);
137 Say.
Say(What,
"empty dir ", sbuff, dPath);
int stat(const char *path, struct stat *buf)
static void Rmd(const char *Path, int islfn=0)
virtual int Remdir(const char *path, int Opts=0, XrdOucEnv *envP=0)=0
void Say(const char *text1, const char *text2=0, const char *txt3=0, const char *text4=0, const char *text5=0, const char *txt6=0)
References XrdCms::Config, XrdCmsConfig::ossFS, XrdOss::Remdir(), XrdFrmCns::Rmd(), XrdFrc::Say, XrdSysError::Say(), stat(), XRDOSS_isPFN, and XRDOSS_resonly.
◆ Reset()
void XrdFrmPurgeDir::Reset |
( |
time_t |
dExp | ) |
|
|
inline |
◆ expDirTime
time_t XrdFrmPurgeDir::expDirTime |
◆ lowDirTime
time_t XrdFrmPurgeDir::lowDirTime |
◆ numEMD
int XrdFrmPurgeDir::numEMD |
◆ numRMD
int XrdFrmPurgeDir::numRMD |
The documentation for this class was generated from the following file: