Skip to content

Commit 2f549a1

Browse files
fix:fix the linting error
1 parent baaed47 commit 2f549a1

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/_tools/docs/www/readme-fragment-file-tree/lib

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/_tools/docs/www/readme-fragment-file-tree/lib/write.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
var path = require( 'path' );
2424
var logger = require( 'debug' );
2525
var mkdirp = require( 'mkdirp' );
26+
var dirname = require( '@stdlib/utils/dirname' );
2627
var objectKeys = require( '@stdlib/utils/keys' );
2728
var writeFile = require( '@stdlib/fs/write-file' );
2829

@@ -72,7 +73,7 @@ function write( src, dest, db, clbk ) {
7273
i += 1;
7374

7475
file = files[ i ];
75-
dpath = path.dirname( file.substring( src.length+1 ) ); // +1 to account for path separator
76+
dpath = dirname( file.substring( src.length+1 ) ); // +1 to account for path separator
7677
dpath = path.join( dest, dpath );
7778

7879
debug( 'Creating output directory: %s', dpath );

0 commit comments

Comments
 (0)