Bug 444621 - Konsole does not find file after deleting and re-creating folder
Summary: Konsole does not find file after deleting and re-creating folder
Status: RESOLVED NOT A BUG
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 21.08.2
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-29 18:37 UTC by David
Modified: 2021-10-29 18:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2021-10-29 18:37:06 UTC
SUMMARY
If I have a konsole session opened in some folder, delete the folder, and put all the files back, konsole will not be able to use those files anymore in the session that is opened, unless first switching to an existing folder and then back.

STEPS TO REPRODUCE
1. Create a folder with some executable file.
2. Launch konsole and go to that folder. Do something in there like launching the executable and closing it, but stay in the folder.
3. Delete the folder and re-create it with all its original files.
4. Try to launch the executable from the konsole session that is still opened form step 2.

OBSERVED RESULT
Does not execute the file, saying it's not there, even though it is.

EXPECTED RESULT
Should execute the file, since it's there.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux
KDE Plasma Version: 5.23.0
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.14.0-3-amd64 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 2700 Eight-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD VEGA10

ADDITIONAL INFORMATION
Comment 1 Ahmad Samir 2021-10-29 18:40:37 UTC
You deleted the whole folder from underneath the Shell's feet; to make it work again you need to `cd ./`. So this the expected behaviour of the Shell you're using, not Konsole.

FWIW, Konsole in such cases would should the string "(deleted)" as part of the tab name.