diff options
Diffstat (limited to 'tools/aapt2/io/FileSystem.h')
-rw-r--r-- | tools/aapt2/io/FileSystem.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/aapt2/io/FileSystem.h b/tools/aapt2/io/FileSystem.h index 6be8807735f1..04c6fa15bc85 100644 --- a/tools/aapt2/io/FileSystem.h +++ b/tools/aapt2/io/FileSystem.h @@ -59,10 +59,15 @@ class FileCollection : public IFileCollection { public: FileCollection() = default; + /** Creates a file collection containing all files contained in the specified root directory. */ + static std::unique_ptr<FileCollection> Create(const android::StringPiece& path, + std::string* outError); + // Adds a file located at path. Returns the IFile representation of that file. IFile* InsertFile(const android::StringPiece& path); IFile* FindFile(const android::StringPiece& path) override; std::unique_ptr<IFileCollectionIterator> Iterator() override; + char GetDirSeparator() override; private: DISALLOW_COPY_AND_ASSIGN(FileCollection); |