From ea0cdb812de4269df3b2c40b456917e000ed8daa Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 25 Nov 2005 18:49:12 +0000 Subject: [PATCH] create dir if needed git-svn-id: file:///home/svn/ljdump/trunk@4 7994a137-d0a5-da11-ade6-0050bffea3d9 --- ljdump.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ljdump.py b/ljdump.py index 45466d9..3a2aa63 100755 --- a/ljdump.py +++ b/ljdump.py @@ -31,6 +31,11 @@ Username = config.documentElement.getElementsByTagName("username")[0].childNodes Password = config.documentElement.getElementsByTagName("password")[0].childNodes[0].data print "Fetching journal entries for: %s" % Username +try: + os.mkdir(Username) + print "Created subdirectory: %s" % Username +except: + pass server = xmlrpclib.ServerProxy("http://livejournal.com/interface/xmlrpc") -- 2.39.5