Changeset 1023 for trunk/rtorrent/src/utils/directory.h
- Timestamp:
- 12/29/07 23:43:05 (4 years ago)
- Files:
-
- 1 modified
-
trunk/rtorrent/src/utils/directory.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/rtorrent/src/utils/directory.h
r1022 r1023 44 44 45 45 struct directory_entry { 46 // Fix. 47 bool is_file() const { return true; } 48 46 49 // The name and types should match POSIX. 47 50 uint32_t d_fileno; … … 72 75 using base_type::erase; 73 76 77 static const uint32_t buffer_size = 64 * 1024; 78 79 static const int update_sort = 0x1; 80 static const int update_hide_dot = 0x2; 81 74 82 Directory() {} 75 83 Directory(const std::string& path) : m_path(path) {} … … 77 85 bool is_valid() const; 78 86 79 bool update(bool hideDot = true); 80 81 // Ergh... 82 const std::string& get_path() { return m_path; } 87 const std::string& path() { return m_path; } 83 88 void set_path(const std::string& path) { m_path = path; } 84 89 85 // Make a list with full path names. 86 // 87 // Fix the uses of this, real bad stuff. 88 std::vector<std::string> make_list(); 90 bool update(int flags); 89 91 90 92 private:
