find-in-files icon indicating copy to clipboard operation
find-in-files copied to clipboard

Is it possible to find in file using full path?

Open jmona789 opened this issue 7 years ago • 1 comments

I'm trying to write a script where you pass a full path to a file and it will search it but when i run the search I get

{ Error: ENOENT: no such file or directory, lstat '/Users/username/Development/internal/test.html '
  errno: -2,
  code: 'ENOENT',
  syscall: 'lstat',
  path: '/Users/username/Development/internal/test.html ' }

Can I find a file using the full path or does it need to be in the same directory as the script?

jmona789 avatar Sep 28 '17 18:09 jmona789

Hi @jmona789,

sorry for the long response times, I don't find that much time these days to keep an eye on GitHub. In theory, what you are trying to do should be possible. The filename ist directly passed to fs.readFile, which should accept a full path as well. I'll try to reproduce your issue as soon as I find the time, maybe there is a glitch in the logic :)

kaesetoast avatar Oct 02 '17 08:10 kaesetoast