[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#41001: mkdir: cannot create directory ‘test’: File exists
From: |
taehwan jeoung |
Subject: |
bug#41001: mkdir: cannot create directory ‘test’: File exists |
Date: |
Wed, 6 May 2020 02:53:29 +0000 (UTC) |
Stupid.mkdir -r test.mkdir test.Read your gnu manual to solve your digital
illiteracy.
2020년 5월 2일 토요일 오전 12시 17분 45초 GMT+9, Jonny Grant <address@hidden> 작성:
Hello!
Can this error message be clarified? The directory already exists, it is
not a file.
lib/mkdir-p.c:200 contains this line of code that triggers below:-
error (0, mkdir_errno, _("cannot create directory %s"), quote (dir));
As it's easy enough to know that the reason mkdir fails is because
'test' a directory that already exists.
Easy enough to check with stat() and S_ISDIR(sb.st_mode)
Can this be changed? Maybe I can make a patch for it.
Jonny
$ mkdir test
$ mkdir test
mkdir: cannot create directory ‘test’: File exists
$ mkdir --version
mkdir (GNU coreutils) 8.28
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David MacKenzie.
$
- bug#41001: mkdir: cannot create directory ‘test’: File exists, (continued)
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Paul Eggert, 2020/05/02
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Jonny Grant, 2020/05/02
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Paul Eggert, 2020/05/02
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Jonny Grant, 2020/05/03
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Bob Proulx, 2020/05/04
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Jonny Grant, 2020/05/05
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Eric Blake, 2020/05/05
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Jonny Grant, 2020/05/07
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Eric Blake, 2020/05/07
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Paul Eggert, 2020/05/10
bug#41001: mkdir: cannot create directory ‘test’: File exists,
taehwan jeoung <=