Skip to content

Commit

Permalink
Minor fix for creating Logs dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Zdonek committed May 23, 2019
1 parent af984ec commit c592a1f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions unity/Holo/Assets/Scripts/Logging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ private void Start()
string LogFileName = DateTime.Now.ToString("ddMMyyyy-HHmmss") + "_log.txt";

string LogFileDir = Path.Combine(Application.persistentDataPath, "Logs");
if (!Directory.Exists(LogFileDir))
{
Directory.CreateDirectory(LogFileDir);
}
Directory.CreateDirectory(LogFileDir);

LogFilePath = Path.Combine(LogFileDir, LogFileName);

Expand Down

0 comments on commit c592a1f

Please sign in to comment.