diff options
author | Ryan Mitchell <rtmitchell@google.com> | 2018-08-16 17:26:08 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-08-16 17:26:08 +0000 |
commit | ead275e19fc9ffbd751b3956a84e27844b97ffe7 (patch) | |
tree | f19915c04e52949cb29908ef1e0f6588ad98d766 /tools/aapt2/util/Files.cpp | |
parent | a60283fdd1f2c67259e8b0c10d88ecfb60a1328b (diff) | |
parent | f3649d669059b924ce9eb3eb7909cbf0a2ed31a8 (diff) |
Merge "AAPT2: Compile --zip flag"
Diffstat (limited to 'tools/aapt2/util/Files.cpp')
-rw-r--r-- | tools/aapt2/util/Files.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/aapt2/util/Files.cpp b/tools/aapt2/util/Files.cpp index 5a8ff0926483..7cd023bca369 100644 --- a/tools/aapt2/util/Files.cpp +++ b/tools/aapt2/util/Files.cpp @@ -149,6 +149,10 @@ StringPiece GetExtension(const StringPiece& path) { return {}; } +bool IsHidden(const android::StringPiece& path) { + return util::StartsWith(GetFilename(path), "."); +} + void AppendPath(std::string* base, StringPiece part) { CHECK(base != nullptr); const bool base_has_trailing_sep = (!base->empty() && *(base->end() - 1) == sDirSep); |