node-license-sniffer icon indicating copy to clipboard operation
node-license-sniffer copied to clipboard

node-license-sniffer attempts to scan macOS .DS_Store folders and fails

Open drjasonharrison opened this issue 7 years ago • 1 comments

On macOS, node-license-sniffer attempts to scan the .DS_Store file as folder and fails:

$  node-license-sniffer --recurse 
{ Error: ENOTDIR: not a directory, open 'node_modules/.DS_Store/package.json'
  errno: -20,
  code: 'ENOTDIR',
  syscall: 'open',
  path: 'node_modules/.DS_Store/package.json' }

Removing the .DS_Store file before running node-license-sniffer is a work around.

[email protected] [email protected] [email protected]

drjasonharrison avatar May 12 '17 21:05 drjasonharrison

Thanks for the issue. I'm not actively working on node-license-sniffer at the moment, so I'm unlikely to address this in the near future.

On Fri, 12 May 2017 14:47:19 -0700 Jason Harrison [email protected] wrote:

On macOS, node-license-sniffer attempts to scan the .DS_Store file as folder and fails:

$  node-license-sniffer --recurse 
{ Error: ENOTDIR: not a directory, open

'node_modules/.DS_Store/package.json' errno: -20, code: 'ENOTDIR', syscall: 'open', path: 'node_modules/.DS_Store/package.json' }

Removing the .DS_Store file before running node-license-sniffer is a work around.

[email protected] [email protected] [email protected]

mwilliamson avatar May 12 '17 22:05 mwilliamson