Comment

Comment by ac29

> 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.

parent ac29 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton