Lines Matching refs:filename
36 FileInfo::FileInfo(const string& filename) in FileInfo() argument
39 int err = stat(filename.c_str(), &st); in FileInfo()
73 :filename(), in TrackedFile()
80 filename = that.filename; in TrackedFile()
85 :filename(file), in TrackedFile()
97 FileInfo updated(filename); in HasChanged()
118 string filename(name + "/" + entry->d_name); in get_directory_contents() local
119 (*results)[filename] = FileInfo(filename); in get_directory_contents()
231 read_file(const string& filename) in read_file() argument
233 FILE* file = fopen(filename.c_str(), "r"); in read_file()
258 is_executable(const string& filename) in is_executable() argument
263 err = stat(filename.c_str(), &st); in is_executable()
272 dirname(const string& filename) in dirname() argument
274 size_t slash = filename.rfind('/'); in dirname()
280 return string(filename, 0, slash); in dirname()
285 leafname(const string& filename) in leafname() argument
287 size_t slash = filename.rfind('/'); in leafname()
289 return filename; in leafname()
290 } else if (slash == filename.length() - 1) { in leafname()
293 return string(filename, slash + 1); in leafname()