Commit 552b4803 authored by yangguo's avatar yangguo Committed by Commit bot

Presubmit should be able to handle files being deleted.

TBR=machenbach@chromium.org

Review-Url: https://codereview.chromium.org/2533583002
Cr-Commit-Position: refs/heads/master@{#41286}
parent b034b715
...@@ -179,7 +179,8 @@ class SourceFileProcessor(object): ...@@ -179,7 +179,8 @@ class SourceFileProcessor(object):
all_files = [ all_files = [
f.AbsoluteLocalPath() f.AbsoluteLocalPath()
for f in files for f in files
if (not self.IgnoreFile(f.LocalPath()) and if (os.path.isfile(f.AbsoluteLocalPath()) and
not self.IgnoreFile(f.LocalPath()) and
self.IsRelevant(f.LocalPath()) and self.IsRelevant(f.LocalPath()) and
all(not self.IgnoreDir(d) for d in dirs(f.LocalPath())) and all(not self.IgnoreDir(d) for d in dirs(f.LocalPath())) and
any(map(f.LocalPath().startswith, search_paths))) any(map(f.LocalPath().startswith, search_paths)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment