Page 1 of 1

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

Posted: 2012-05-24 9:38 am
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.

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

Posted: 2012-05-25 7:10 pm
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?