create sync_dir if it doesn't exists

This commit is contained in:
skilion 2016-06-28 14:21:48 +02:00
parent bfb24193db
commit 09af80d843

View file

@ -71,6 +71,7 @@ void main(string[] args)
string syncDir = expandTilde(cfg.get("sync_dir"));
if (verbose) writeln("All operations will be performed in: ", syncDir);
if (!exists(syncDir)) mkdir(syncDir);
chdir(syncDir);
if (verbose) writeln("Initializing the Synchronization Engine ...");