1868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Copyright (c) 2013 The Chromium Authors. All rights reserved. 2868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 3868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// found in the LICENSE file. 4868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 5868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#include "base/files/file_enumerator.h" 6868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 76e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)#include "base/files/file_util.h" 8868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 9868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)namespace base { 10868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 11868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)FileEnumerator::FileInfo::~FileInfo() { 12868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)} 13868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 14868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)bool FileEnumerator::ShouldSkip(const FilePath& path) { 15868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) FilePath::StringType basename = path.BaseName().value(); 16868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) return basename == FILE_PATH_LITERAL(".") || 17868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) (basename == FILE_PATH_LITERAL("..") && 18868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) !(INCLUDE_DOT_DOT & file_type_)); 19868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)} 20868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 21868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)} // namespace base 22