diff options
Diffstat (limited to 'fastos/src/vespa/fastos/file.cpp')
-rw-r--r-- | fastos/src/vespa/fastos/file.cpp | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/fastos/src/vespa/fastos/file.cpp b/fastos/src/vespa/fastos/file.cpp index cf17b672bd5..8f164c2a522 100644 --- a/fastos/src/vespa/fastos/file.cpp +++ b/fastos/src/vespa/fastos/file.cpp @@ -6,9 +6,10 @@ * @author Div, Oivind H. Danielsen */ -#include <vespa/fastos/file.h> +#include "file.h" #include <sstream> - +#include <cstring> +#include <fcntl.h> DirectIOException::DirectIOException(const char * fileName, const void * buffer, size_t length, int64_t offset) : std::exception(), @@ -495,3 +496,18 @@ bool FastOS_FileInterface::Rename (const char *newFileName) void FastOS_FileInterface::dropFromCache() const { } + +FastOS_DirectoryScanInterface::FastOS_DirectoryScanInterface(const char *path) + : _searchPath(strdup(path)) +{ +} + +/** + * Destructor. + * + * Frees operating system resources related to the directory scan. + */ +FastOS_DirectoryScanInterface::~FastOS_DirectoryScanInterface() +{ + free(_searchPath); +}
\ No newline at end of file |