I have a directory, containing files generated by compiler. During each rebuild this directory gets cleaned and, after build process
ls gives me empty output. After I
cd out of directory and then back to it ls works right.
The questions are:
- Is there any other, more elegant way to refresh directory?
- What actually happens when files deleted and recreated? Why do I need to
cdto see actual directory content?