88{
90 static const char *What = (
Config.
Test ?
"Zorch " :
"Purged ");
92 struct utimbuf times;
93 char Parent[MAXPATHLEN+1], *Slash;
94 int n, rc;
95
96
97
102 return;
103 }
104
105
106
107
108 strcpy(Parent, dPath);
109 n = strlen(Parent);
110 if (Parent[n-1] == '/') Parent[--n] = '\0';
111 if ((Slash = rindex(Parent, '/')))
112 {*Slash = '\0';
113 if (
stat(Parent, &pStat)) Slash = 0;
114 }
115
116
117
120 {times.actime = pStat.st_atime;
121 times.modtime = pStat.st_mtime;
122 utime(Parent, ×);
124 }
125
126
127
128 if (!rc)
131 {char sbuff[64];
132 struct tm tNow;
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);
138 }
139 }
140}
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)