16 int main(
int argc,
char* argv[])
24 JParser<> zap(
"Example program to print status of file.");
30 catch(
const exception &error) {
31 FATAL(error.what() << endl);
37 const JStat jas(file_name.c_str());
39 if (jas.getError() == 0) {
41 cout <<
"UID " << jas.getUID() << endl;
42 cout <<
"GID " << jas.getGID() << endl;
43 cout <<
"Size [B] " << jas.getSize() << endl;
44 cout <<
"Last access " << jas.getTimeOfLastAccess() << endl;
45 cout <<
"Last modified " << jas.getTimeOfLastModification() << endl;
46 cout <<
"Last changed " << jas.getTimeOfLastChange() << endl;
50 cout <<
"error: " << file_name << std::endl;