commit 5413e94e9cdafbe62d8723afdcde795feff46942
parent 80a11f13c26ae366818d1424989d6e5d2474718a
Author: root <Robin Bäckman>
Date: Thu, 28 Jul 2016 22:02:25 +0000
Create video folder if doesnt exist
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/tarina.py b/tarina.py
@@ -878,6 +878,8 @@ def empty(filename):
def main():
filmfolder = "/home/pi/Videos/"
filename = "ninjacam"
+ if os.path.isdir(filmfolder) == False:
+ os.system('mkdir ' + filmfolder)
tarinafolder = os.getcwd()
#COUNT FILM FILES
files = os.listdir(filmfolder)