2014-08-02 18:28:38 +00:00
|
|
|
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
|
|
|
|
#ifndef OSQUERY_FILESYSTEM_H
|
|
|
|
#define OSQUERY_FILESYSTEM_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2014-08-05 23:13:55 +00:00
|
|
|
#include "osquery/status.h"
|
2014-08-02 18:28:38 +00:00
|
|
|
|
|
|
|
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
|
2014-08-05 23:13:55 +00:00
|
|
|
// successful). An osquery::Status is returned indicating the success or
|
2014-08-02 18:28:38 +00:00
|
|
|
// failure of the operation.
|
2014-08-05 23:13:55 +00:00
|
|
|
osquery::Status readFile(const std::string& path, std::string& content);
|
2014-08-02 18:28:38 +00:00
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
#endif /* OSQUERY_FILESYSTEM_H */
|