I created a button with a simple check.
It should verify whether the right folder tab is an FTP or SFTP folder. Otherwise, the message “This is not FTP SFTP path” should appear.
In my example, the right folder tab is an FTP directory.
The check in the button works as long as the focus is on the right folder tab - I get the message “FTP”.
However, if the focus is on the left folder tab, the button no longer detects the right FTP/SFTP folder tab and immediately jumps to the else branch, giving me the message “This is not FTP SFTP path”.
Shouldn’t ifpathR always work, regardless of where the focus is?
Otherwise, I could just use ifpath.
Is this a bug?
Button Code:
@ifpathR:sftp://*
@confirm:"SFTP"
@ifpathR:ftp://*
@confirm:"FTP"
@ifpathR:else
@confirm:"This is not FTP SFTP path"
The problem is that if I accidentally move a file within the same directory, I get an error message saying that the source and destination must be different.
It’s right that moving files within the same folder shouldn’t work. But the error message is annoying.
If the command is written like this, the error message doesn’t appear.
That will make it ignore drops on the same folder, but should still result in a copy with FTP paths (although I haven't checked that part; let me know if it doesn't work as expected).
(The tooltip is also based on the first command, so it'll say it's a move if the drag isn't blocked due to being on the same folder.)