source is my system drive
destination is a removable drive to which I had previously backed files up to
					destination is a removable drive to which I had previously backed files up to
recursive function(collection)
 resync(collection[n].sourcePath, collection[n].destinationPath)
[COLOR=#000080][B]var [/B][/COLOR][COLOR=#458383]collection [/COLOR]= [
{  [COLOR=#008000][B]"filename"[/B][/COLOR]: [COLOR=#008000][B]"some file"[/B][/COLOR],
[COLOR=#008000][B]"sourcePath"[/B][/COLOR]: [COLOR=#008000][B]"some/source/path"[/B][/COLOR],
[COLOR=#008000][B]"destinationPath:"[/B][/COLOR]: [COLOR=#008000][B]"some/destination/path"
[/B][/COLOR]},
{  [COLOR=#008000][B]"filename"[/B][/COLOR]: [COLOR=#008000][B]"some other file"[/B][/COLOR],
[COLOR=#008000][B]"sourcePath"[/B][/COLOR]: [COLOR=#008000][B]"some/other/source/path"[/B][/COLOR],
[COLOR=#008000][B]"destinationPath:"[/B][/COLOR]: [COLOR=#008000][B]"some/other/destination/path"
[/B][/COLOR][FONT=&]}
][/FONT]
recursive function(collection)
 resync(collection[n].sourcePath, collection[n].destinationPath)
[COLOR=#000080][B]var [/B][/COLOR][COLOR=#458383]collection [/COLOR]= [
{  [COLOR=#008000][B]"filename"[/B][/COLOR]: [COLOR=#008000][B]"some file"[/B][/COLOR],
[COLOR=#008000][B]"sourcePath"[/B][/COLOR]: [COLOR=#008000][B]"some/source/path"[/B][/COLOR],
[COLOR=#008000][B]"destinationPath:"[/B][/COLOR]: [COLOR=#008000][B]"some/destination/path"
[/B][/COLOR]},
{  [COLOR=#008000][B]"filename"[/B][/COLOR]: [COLOR=#008000][B]"some other file"[/B][/COLOR],
[COLOR=#008000][B]"sourcePath"[/B][/COLOR]: [COLOR=#008000][B]"some/other/source/path"[/B][/COLOR],
[COLOR=#008000][B]"destinationPath:"[/B][/COLOR]: [COLOR=#008000][B]"some/other/destination/path"
[/B][/COLOR][FONT=&]}
][/FONT]
There are 0 users viewing this topic.
Comment