Need help: how to deal with the error "cannot stat file"

Questions, problems, suggestions, bug reports, and so on.
Post Reply
ask
Posts: 3
Joined: 2012-03-28 11:08 am

Need help: how to deal with the error "cannot stat file"

Post by ask »

When executing command: "jscoverage SOUCE_DIR DESTINATION_DIR", it indicated the following error:
"jscoverage: cannot stat file: /SOUCE_DIR/subdir/abc.xml"
and then aborted.

However, after inputting the command"stat abc.xml",the result shows that the file abc.xml has a link with another file with the same filename in another directory, as follows:
/#stat /SOUCE_DIR/subdir/abc.xml
File: /SOUCE_DIR/subdir/abc.xml' ->'/work/abc.xml'
Size: 36 Blocks: 0 IO Block: 4096 symbolic link
Device: 30ah/778d Inode: 131889 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-05-24 6:30:06.000000000 +0900
Modify: ... ...
Change: ... ...

What's wrong with the problem? How shall I do to deal with it?
Expecting your expert suggestions.
siliconforks
Site Admin
Posts: 34
Joined: 2007-05-26 5:25 am

Re: Need help: how to deal with the error "cannot stat file"

Post by siliconforks »

A symbolic link like that should work ... I notice that your files seem to be owned by root - are you sure they are readable by the user who is running jscoverage?
Post Reply