TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Windows does not support “aux” as valid directory/file name

1 点作者 jackjackk0超过 5 年前

2 条评论

jackjackk0超过 5 年前
Today, one colleague of mine was claiming that he was not able to clone my repository. I'm on Linux, he's on Windows. In disbelief, I fire up my Win VM and try. Indeed, I get "cannot checkout to invalid path aux/foo/0001-bar.patch". At first I thought Windows cannot support 5-character extensions, but then I realized it just doesn't support "aux". Coincidentally, I also had a aux.py somewhere in the repo, which was also badly received. I meant to use aux for auxiliary stuff, and the name didn't sound too crazy at the beginning, but then it is for Windows after all. Just a tale for precautionary naming.
simonblack超过 5 年前
AUX: is a device name in MSDOS&#x2F;Windows. There are several others in the same situation. The names <i>can</i> be used but you need to use sneaky, underhand methods. :)<p><a href="https:&#x2F;&#x2F;www.thewindowsclub.com&#x2F;create-restricted-files-folders-con-aux-nul-click-windows" rel="nofollow">https:&#x2F;&#x2F;www.thewindowsclub.com&#x2F;create-restricted-files-folde...</a>