Robotics StackExchange | Archived questions

Deleted src files after catkin_make

Is there anyway to recover the source files from a package? After I compiled everything using catkin_make, I accidently removed the "src" folder of the package.

Since it is impossible to recover the files removed with "rm", is there a way to recover the source files using ROS?

Asked by nwanda on 2016-02-17 15:11:56 UTC

Comments

Answers

Depending on your file system. It's not 'impossible' to recover the files. If your volume is not encrypted then you could use a bootable usb stick with some software to scan the hardrive and try and recover the files.

There may be some of the header files in the other folders if you look through them, but I don't know if the C files will still be there.

Asked by PeteBlackerThe3rd on 2016-02-17 16:05:34 UTC

Comments

No, ROS relies uses operating system functionality for file management and has no own facilities that perform backups behind the scenes. You really should be using a version control system and regularly push your changes.

Your best bet is probably googling for how to recover files that have been removed using rm on Linux systems.

Asked by Stefan Kohlbrecher on 2016-02-17 16:05:54 UTC

Comments