4 ms·
> If the destination doesn't exist, move renames the source file to the destination name in the current directory. This behavior is documented in Microsoft's of
by ac29 1y ago
> If the destination doesn't exist, move renames the source file to the destination name in the current directory. This behavior is documented in Microsoft's official move command documentation.
> For example: move somefile.txt ..\anuraag_xyz_project would create a file named anuraag_xyz_project (no extension) in the current folder, overwriting any existing file with that name.
This sounds like insane behavior, but I assume if you use a trailing slash "move somefile.txt ..\anuraag_xyz_project\" it would work?
Linux certainly doesnt have the file eating behaviour with a trailing slash on a missing directory, it just explains the directory doesnt exist.
- fireattack 1y agoWindows doesn't either. >move 1 ..\1\ The system cannot find the path specified. 0 file(s) moved. But the issue is you can't ensure LLM will generate the command with trailing slash. So there is no difference in Windows or Linux for this particular case.