Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: python
python:
- "3.6"
5 changes: 4 additions & 1 deletion validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
# Rule: There are no hidden files here
def findHidden(f): #I'm assuming here that validator() is looping through files
if f.startswith("."):
print("!!!!! HIDDEN FILE FOUND !!!!!, ", f)
return True
else:
return False

# Rule: No filename has any sort of whitespace
# What input does this need?
Expand Down Expand Up @@ -38,6 +40,7 @@ def validator():
p = Path(inputDir) # declares inputDir as a Path object
for i in p.glob('**/*.*'): # i in this statement should now be every file in p.
print(i.name) # comment this line and make this loop do something else, like call one of our other functions
findHidden(i) # for each file (i), return True if it's a hidden file, return false if it's not a hidden file

if __name__ == '__main__':
validator()