+ const string dvd_dir = _film->dir ("dvd");
+
+ string largest_file;
+ uintmax_t largest_size = 0;
+ for (boost::filesystem::directory_iterator i = boost::filesystem::directory_iterator (dvd_dir); i != boost::filesystem::directory_iterator(); ++i) {
+ uintmax_t const s = boost::filesystem::file_size (*i);
+ if (s > largest_size) {
+
+#if BOOST_FILESYSTEM_VERSION == 3
+ largest_file = boost::filesystem::path(*i).generic_string();
+#else
+ largest_file = i->string ();
+#endif
+ largest_size = s;
+ }
+ }
+
+ _film->set_content (largest_file);
+