Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Minor changes (untested)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarnobat committed Sep 24, 2017
1 parent 6f3923d commit 04d3732
Show file tree
Hide file tree
Showing 2 changed files with 1,326 additions and 4 deletions.
12 changes: 8 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,13 @@
var filePath = button.parentElement.children[0].src.replace(fileServerPrefix, '');
var parentDirPath = getParentPath(filePath);
return copyFileToFolder(filePath,
// '/media/sarnobat/Unsorted/new/Photos/iPhone/'
'/media/sarnobat/3TB/trash/'
// '/home/sarnobat/trash/'
// '/media/sarnobat/Unsorted/new/Photos/iPhone/' // does not work
'/media/sarnobat/3TB/new/move_to_unsorted/iphone/'
// '/media/sarnobat/Large/trash/' // works
// '/media/sarnobat/3TB/trash/' // works
// '/home/sarnobat/trash/' // works
// '/media/sarnobat/e/trash/' // works
// '/media/sarnobat/Large/new/photos/iPhone/' // symlink to Unsorted, does not work
+subdirSimpleName, button);
}

Expand All @@ -120,7 +124,7 @@

function copyFileToFolder(filePath, destinationDirPath, button) {
//debugger;
$.getJSON(host + ":44451/cmsfs/copyToFolder?filePath="+encodeURIComponent(filePath) + "&destinationDirPath=" + encodeURIComponent(destinationDirPath), function(response) {
$.getJSON(host + ":44486/md5ro/copyToFolder?filePath="+encodeURIComponent(filePath) + "&destinationDirPath=" + encodeURIComponent(destinationDirPath), function(response) {
$(button).css('background-color','green');
debugger;
});
Expand Down
Loading

0 comments on commit 04d3732

Please sign in to comment.