Commit 0a166a15 authored by Efthymia Bika's avatar Efthymia Bika
Browse files

Define default restore directory

parent 72a5b0b0
......@@ -8,6 +8,7 @@ var CLOUDS_CONF_FILE = 'clouds.rc';
var BACKUP_CONF_FILE = 'backups.rc';
var BAAS_LOG_DIR = path.join(get_user_home(), BAAS_HOME_DIR, 'log');
var BAAS_CACHE_DIR = path.join(get_user_home(), BAAS_HOME_DIR, 'cache');
var RESTORE_DEFAULT_DIR = path.join(get_user_home(), "Backups");
var exec_path = path.dirname(process.execPath);
var CYGWIN_BASH = path.join(exec_path, "cygwin", "bin", "bash.exe");
......
function go_to_restore(name) {
g_res_directory = path.join(get_user_home(), "Backups");
g_res_directory = RESTORE_DEFAULT_DIR;
var time_path = $("#time-path").val();
if(time_path != "/") time_path += "/";
if(time_path.startsWith("/")) time_path = time_path.replace("/", "");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment