mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 01:55:20 +00:00
23 lines
672 B
C++
23 lines
672 B
C++
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#ifndef OSQUERY_FILESYSTEM_H
|
|
#define OSQUERY_FILESYSTEM_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "osquery/status.h"
|
|
|
|
namespace osquery { namespace fs {
|
|
|
|
// readFile accepts a const reference to an std::string indicating the path of
|
|
// the file that you'd like to read and a non-const reference to an std::string
|
|
// which will be populated with the contents of the file (if all operations are
|
|
// successful). An osquery::Status is returned indicating the success or
|
|
// failure of the operation.
|
|
osquery::Status readFile(const std::string& path, std::string& content);
|
|
|
|
}}
|
|
|
|
#endif /* OSQUERY_FILESYSTEM_H */
|