From d0caf797684f7b1439f5d8cf1130750baab130b3 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Fri, 28 Dec 2018 17:38:42 -0800 Subject: [PATCH 1/2] Licence under MIT Closes #9 --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2e68498 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Michael Lang, Christopher Usher + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From efe30c1942d97359e9cd981224badd871c1ef51b Mon Sep 17 00:00:00 2001 From: Christopher Usher Date: Fri, 28 Dec 2018 19:12:56 -0800 Subject: [PATCH 2/2] Added a comment to highlight recursion --- downloader/downloader/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/downloader/downloader/main.py b/downloader/downloader/main.py index 86718e7..868a619 100644 --- a/downloader/downloader/main.py +++ b/downloader/downloader/main.py @@ -437,6 +437,7 @@ class SegmentGetter(object): dir_path = os.path.dirname(path) if os.path.exists(dir_path): return + # call recursively to check entire path exists self.ensure_directory(dir_path) try: os.mkdir(dir_path)