elliot40404 / bonk

The blazingly fast touch alternative with a sprinkle of mkdir written in rust.
MIT License
97 stars 9 forks source link

An error occurs when creating a folder with the same name as an existed file. #11

Closed WoodwindHu closed 1 year ago

WoodwindHu commented 1 year ago

As shown in the following figure:

image

Platform: MacOs

elliot40404 commented 1 year ago

This is not actually a problem this is just a limitation of how OS's handle files and directories, you cannot have a file and a directory with the same name in the same directory. Though what can be improved is throwing the correct error message.