You can also move the file using the console (e.g. PowerShell or Git Bash) in code.
Recently, I have the habit of moving files or folders in the sidebar using ctrl + x (cut) and ctrl + v (paste), after this action the code automatically updates the import.
The drag and drop method also works.
source
share