From c3c003a7b77aaf02663e348ef9ee87a2318c1290 Mon Sep 17 00:00:00 2001 From: bonniegee Date: Wed, 27 Mar 2019 14:32:30 -0400 Subject: [PATCH 1/4] fix #27" --- validator.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/validator.py b/validator.py index 7c64f95..aaedab0 100755 --- a/validator.py +++ b/validator.py @@ -11,7 +11,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? @@ -40,7 +42,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 # Some things we might want to do here: # Gather and check user input # Set up output filename (see if we're overwriting anything?) From 2e4584a6a035db77c3e0f331a7cea6f0fbcbb0f7 Mon Sep 17 00:00:00 2001 From: Bonnie Date: Wed, 12 Jun 2019 11:35:29 -0400 Subject: [PATCH 2/4] Create .travis.yml --- .travis.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d1ad0ae --- /dev/null +++ b/.travis.yml @@ -0,0 +1 @@ +language: python From 60911ed7b8ca6d078418e68db0af1d995b304ade Mon Sep 17 00:00:00 2001 From: Bonnie Date: Wed, 12 Jun 2019 11:42:49 -0400 Subject: [PATCH 3/4] Update .travis.yml --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index d1ad0ae..579ba9a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1 +1,10 @@ language: python +python: +python: + - "3.6" +# command to install dependencies +install: + - pip install -r requirements.txt +# command to run tests +script: + - pytest From ba955171f00df13be4b7702e1cb469baa882aa7a Mon Sep 17 00:00:00 2001 From: Bonnie Date: Wed, 12 Jun 2019 11:43:27 -0400 Subject: [PATCH 4/4] Update .travis.yml --- .travis.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 579ba9a..dc57df9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,3 @@ language: python -python: python: - "3.6" -# command to install dependencies -install: - - pip install -r requirements.txt -# command to run tests -script: - - pytest