{
public:
FileItem();
- FileItem(char *path, char *name, int is_dir,
+ FileItem(const char *path, const char *name, int is_dir,
int64_t size, time_t mtime, int item_no=-1);
~FileItem();
int parse_directories(char *new_dir); // add directories
int parse_dots(char *new_dir); // move up directory tree after expanding tildas
static char *basepath(const char *path); // collapse ".", "..", "//" elements
+ static int test_filter(const char *url, const char *filter); // returns 0 if url matches filter
// Array of files and directories in the directory pointed to by current_dir.
// Directories are first.
int want_directory;
int show_all_files; // shows . files
char current_dir[BCTEXTLEN];
- char string[BCTEXTLEN], string2[BCTEXTLEN];
int sort_order;
int sort_field;
};