diff options
author | emkael <emkael@tlen.pl> | 2015-03-28 12:46:57 +0000 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2015-03-28 12:46:57 +0000 |
commit | 3ca778ea50b7302733fad1098e41d91d36e4691d (patch) | |
tree | 807aada03514c1a683a6ac8d7eb0ec64d4c4d13c /Analizator9000 | |
parent | 2c0dc7118170cb0acef05e41ba531845e155600a (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.cs | 4 |
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 = "";
|