Skip to content

Commit

Permalink
Merge pull request #93 from hantwister/patch-1
Browse files Browse the repository at this point in the history
Windows AppData paths correction in wipe
  • Loading branch information
mauricioschneider committed Mar 3, 2015
2 parents 4dea26a + f94d228 commit 9280ffc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/agent/actions/wipe/windows.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ var os = require('os'),
exec = require('child_process').exec;

if (parseFloat(os.release()) > 5.2) {
var data_path = 'Application Data';
var data_path = join('AppData', 'Local');
var documents_path = ['Contacts', 'Documents', 'Downloads', 'Desktop', 'Pictures', 'Videos'];
} else {
var data_path = join('AppData', 'Local');
var data_path = 'Application Data';
var documents_path = ['Desktop', 'My Documents'];
}

Expand Down Expand Up @@ -55,4 +55,4 @@ exports.clear_ie = function(cb) {
// 255 deletes everything, so no need to go one by one
exports.clear_ie = function(cb) {
exec('RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255', cb);
}
}

0 comments on commit 9280ffc

Please sign in to comment.