From: greg Date: Fri, 25 Nov 2005 18:49:12 +0000 (+0000) Subject: create dir if needed X-Git-Tag: ljdump-1.3.2~28 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=ea0cdb812de4269df3b2c40b456917e000ed8daa;p=oss%2Fljdump.git create dir if needed git-svn-id: file:///home/svn/ljdump/trunk@4 7994a137-d0a5-da11-ade6-0050bffea3d9 --- 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")