diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..dc57df9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: python +python: + - "3.6" diff --git a/validator.py b/validator.py index 5fc8da0..637bfad 100755 --- a/validator.py +++ b/validator.py @@ -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? @@ -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()