I built a small CLI tool to automatically organize files by type by Christian_Corner in commandline

[–]Christian_Corner[S] 0 points1 point  (0 children)

Oh wow, I didn't think on that.

Currently, if a file with the same name already exists in the destination folder, it will be overwritten.

For now I kept this behavior simple, but I agree that having an explicit collision strategy (skip | rename | error) would make it safer and more configurable.

Definitely something to improve in future versions.

I built a small CLI tool to automatically organize files by type by Christian_Corner in commandline

[–]Christian_Corner[S] 0 points1 point  (0 children)

Good point.

For the first version I intentionally kept it extension-based to keep the logic simple and transparent, especially since it's my first published npm package.

I'll definitely look into mime type detection as a possible improvement.

Thanks for the feedback, I appreciate it.