in the UI : if you move a file from folder A to fo...
# suitescript
g
in the UI : if you move a file from folder A to folder B then and a file with the same name already exists then you get an “Notice” :
A file with the same name already exists in the selected folder.
And the file move does not occur. in SS: move of same kind by changing the
file.folder
reference (and save) you get no feedback /exception (and the move does not occur) that discrepancy feels like a bug. thoughts? admittedly it’s likely inadvisable for NS to change this behaviour so perhaps there needs to be a
move
method added FWIW, the workaround is to keep track of the old value and inspect if the
file.folder
reference updated
as a weird side effect… if the folder A has file A.X and folder B has B.X and you do the above. B.X will be unchanged except…. B.X will report a size the same as A.X i didn’t fully test this but it definitely is the case when A.X size > B.X — note contents of B.X remains unchanged