23#if BOOST_FILESYSTEM_VERSION < 3
24#ifndef WT_NO_STD_WSTRING
36 if (boost::filesystem::exists(path)) {
37 if (!boost::filesystem::is_directory(path)) {
38 int fsize = (int)boost::filesystem::file_size(path);
39 setColumnWidget(1,
new WText(boost::lexical_cast<std::string>(fsize)));
40 columnWidget(1)->setStyleClass(
"fsize");
44 std::time_t t = boost::filesystem::last_write_time(path);
49 localtime_r(&t, &ttm);
53 strftime(c, 100,
"%b %d %Y", &ttm);
55 setColumnWidget(2,
new WText(c));
56 columnWidget(2)->setStyleClass(
"date");
73 if (boost::filesystem::is_directory(
path_)) {
74 std::set<boost::filesystem::path> paths;
75 boost::filesystem::directory_iterator end_itr;
77 for (boost::filesystem::directory_iterator i(
path_); i != end_itr; ++i)
80 }
catch (boost::filesystem::filesystem_error& e) {
81 std::cerr << e.what() << std::endl;
84 for (std::set<boost::filesystem::path>::iterator i = paths.begin();
85 i != paths.end(); ++i)
88 }
catch (boost::filesystem::filesystem_error& e) {
89 std::cerr << e.what() << std::endl;