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

fs-utils / symlink / 14 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 01 Jul 2015 05:38PM UTC
Files 1
Run time 1s
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

01 Jul 2015 05:35PM UTC coverage: 100.0%. Remained the same
14.1

push

travis-ci

jonathanong
Normalise from path to allow symlink to a directory from inside that dir

It is currently not possible to symlink to a directory from inside that
directory (e.g. symlink /app/myfolder/folder to /app/myfolder). This is because
we're using path.dirname(to) which will result in the same directory as the from
argument and the result of using path.relative() with two paths that are the same
is '' - an empty string.

By using path.normalize() you get the correct result: '.', the current directory

23 of 23 relevant lines covered (100.0%)

3.17 hits per line

Source Files on job 14.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 14
  • Travis Job 14.1
  • 977c2dfc on github
  • Prev Job for on master (#12.1)
  • Next Job for on master (#16.1)
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

© 2025 Coveralls, Inc