]> wagner.pp.ru Git - oss/ljdump.git/commitdiff
create dir if needed
authorgreg <greg@7994a137-d0a5-da11-ade6-0050bffea3d9>
Fri, 25 Nov 2005 18:49:12 +0000 (18:49 +0000)
committergreg <greg@7994a137-d0a5-da11-ade6-0050bffea3d9>
Fri, 25 Nov 2005 18:49:12 +0000 (18:49 +0000)
git-svn-id: file:///home/svn/ljdump/trunk@4 7994a137-d0a5-da11-ade6-0050bffea3d9

ljdump.py

index 45466d906da9127eb75db12d57f2fec48475486e..3a2aa6367c2fbd51b3bdb0fe85c09b330aa1d9fc 100755 (executable)
--- 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")