Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions scripts/mountNetDrive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,13 @@ do
then ## make sure the request only affects files on external media (and nobody's trying to be tricky by going up a folder)
if [[ "${params[2]}" == *".mp4" ]] || [[ "${params[2]}" == *".dng" ]] || [[ "${params[2]}" == *".tiff" ]]
then ## verify that only a video or image is being deleted
rm "${params[2]}" ## delete the file
echo "${params[2]} Deleted"
rm "${params[2]//%20/ }" ## delete the file >> notice that I remove 'spaces' here
echo "${params[2]//%20/ } Deleted" ## the "//%20/ " thing replaces "%20" with a space
fi
else
echo "unacceptable filepath for deleting"
fi
echo "For the delete request, I got this: ${params[2]//%20/ }"
else
echo "Invalid network share type: ${params[5]}"
fi
Expand All @@ -216,8 +217,6 @@ echo ":::: End of program ::::"
exit
exit

#echo "you gave me this: nfs/smb: $1 IPAddress: $2 folderLocation: $3"



#echo "you gave me this: nfs/smb: $1 IPAddress: $2 folderLocation: $3"

4 changes: 2 additions & 2 deletions src/IO.html
Original file line number Diff line number Diff line change
Expand Up @@ -1357,8 +1357,8 @@
}

request += '}' ;

document.getElementById("debugger2").innerHTML += "<br><br>" + "This is the \"simple mode\" request: " + request ;
if (DebugOnOff)
document.getElementById("debugger2").innerHTML += "<br><br>" + "This is the \"simple mode\" request: " + request ;

dataRequester ("set", request, pageUpdate) ;
}
Expand Down
Loading