diff options
Diffstat (limited to 'vespalib/src/vespa/fastos/unix_file.h')
-rw-r--r-- | vespalib/src/vespa/fastos/unix_file.h | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/vespalib/src/vespa/fastos/unix_file.h b/vespalib/src/vespa/fastos/unix_file.h index dad75dc561f..81e5de901a3 100644 --- a/vespalib/src/vespa/fastos/unix_file.h +++ b/vespalib/src/vespa/fastos/unix_file.h @@ -4,7 +4,7 @@ * @author Oivind H. Danielsen * @date Creation date: 2000-01-18 * @file -* Class definitions for FastOS_UNIX_File and FastOS_UNIX_DirectoryScan. +* Class definitions for FastOS_UNIX_File *****************************************************************************/ #pragma once @@ -83,32 +83,3 @@ public: static int64_t GetFreeDiskSpace (const char *path); static int count_open_files(); }; - -#include <dirent.h> -/** - * This is the generic UNIX implementation of @ref FastOS_DirectoryScan. - */ -class FastOS_UNIX_DirectoryScan : public FastOS_DirectoryScanInterface -{ -private: - bool _statRun; - bool _isDirectory; - bool _isRegular; - char *_statName; - char *_statFilenameP; - - void DoStat(); - -protected: - DIR *_dir; - struct dirent *_dp; - -public: - FastOS_UNIX_DirectoryScan(const char *searchPath); - ~FastOS_UNIX_DirectoryScan(); - - bool ReadNext() override; - bool IsDirectory() override; - bool IsRegular() override; - const char *GetName() override; -}; |