• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mknos / PerlPowerTools / 12576418032
72%
master: 62%

Build:
Build:
LAST BUILD BRANCH: head-nplus
DEFAULT BRANCH: master
Ran 02 Jan 2025 01:58AM UTC
Jobs 1
Files 3
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Jan 2025 01:54AM UTC coverage: 72.464% (-0.7%) from 73.196%
12576418032

push

github

web-flow
mkdir: suppress multiple errors for non-directory argument

* Previously if running "mkdir -p", and the 1st part of an argument is not a directory, the program would attempt to call mkdir() on the intermediate paths under it
* So if I have regular file 0, "mkdir -p 0/1/2" would show 3 errors because of mkdir("0/1") and mkdir("0/1/2")
* Restructure the program so ARGV can remain as a list of directories (now we don't need the explanation comment for the old confusing code)
* For -p flag, split directory into parts, calling a create_dir() function for each part
* split_dir() handles the case where the 1st part is not a directory, and drops the sub-directory parts

%touch 0
%perl mkdir -p 0/1/2 00 aa/bb/cc
mkdir: cannot create directory '0': File exists

%find 00 aa # everything was created except for 0/...
00
aa
aa/bb
aa/bb/cc

350 of 483 relevant lines covered (72.46%)

4697.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12576418032.1 02 Jan 2025 01:58AM UTC 0
72.46
GitHub Action Run
Source Files on build 12576418032
Detailed source file information is not available for this build.
  • Back to Repo
  • a9977d54 on github
  • Prev Build on master (#12576352584)
  • Next Build on mkdir-p-err (#12576484561)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc