summaryrefslogtreecommitdiff
path: root/Analizator9000
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-03-28 12:46:57 +0000
committeremkael <emkael@tlen.pl>2015-03-28 12:46:57 +0000
commit3ca778ea50b7302733fad1098e41d91d36e4691d (patch)
tree807aada03514c1a683a6ac8d7eb0ec64d4c4d13c /Analizator9000
parent2c0dc7118170cb0acef05e41ba531845e155600a (diff)
* BUGFIX: creating files/ directory if it's not present
git-svn-id: https://svn.emkael.info/an9k@54 05ec0d5d-773b-4d93-9e23-c81a7ac79feb
Diffstat (limited to 'Analizator9000')
-rw-r--r--Analizator9000/Analizator9000/DealerParser.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Analizator9000/Analizator9000/DealerParser.cs b/Analizator9000/Analizator9000/DealerParser.cs
index e6cadad..b5240cb 100644
--- a/Analizator9000/Analizator9000/DealerParser.cs
+++ b/Analizator9000/Analizator9000/DealerParser.cs
@@ -186,6 +186,10 @@ namespace Analizator9000
/// <returns>Input script contents.</returns>
public String saveFile()
{
+ if (!Directory.Exists("files"))
+ {
+ Directory.CreateDirectory("files");
+ }
String filename = Utils.getFilename("dealer");
StreamWriter file = new StreamWriter(@"files\" + filename);
String predealStr = "";