// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // A utility to clear the operating system's cache for a file or directory. // // USAGE: clear_system_cache [--recurse] <files or directories> #include <stddef.h> #include <stdio.h> #include "base/command_line.h" #include "base/files/file_enumerator.h" #include "base/files/file_path.h" #include "base/files/file_util.h" #include "base/logging.h" #include "base/test/test_file_util.h" void ClearCacheForFile(const base::FilePath& path) { … } int main(int argc, const char* argv[]) { … }