I moved/renamed a folder with .svg-figures using mv fig figs. In my mind, this should have renamed the folder 'fig' to 'figs'. Accordingly, the output from ls showed a folder named 'figs' when I ran it directly after renaming. I never checked that the content was in the folder, but went on to produce a few pdfs using pandoc. Now, when I run ls, the directory 'figs' is no longer listed and I can't find the containing figures anywhere in my system.
I tried sudo updatedb and then locate fig | grep svg (most files in the folder had 'fig' in the file name and the extension .svg). I also tried sudo find / -iname "*fig*" |grep svg, but non of the figures I had in the original directory show up. I also tried looking in ~/.local/share/Trash, but nothing there either.
I thought I was safe first since I use SpiderOak to backup all my files and it also keeps track of deleted files and file versions. However, when I went into the client there is nothing there. Neither of the directories 'fig' or 'figs' are listed either in existing or deleted files. This is a mystery to me, does anyone have an idea of what happened and where I can find my figures? Or is my only hope to use something like photorec to restore all deleted files on the entire partition?
Update
Here is a full list of all the commands I ran from moving the directory to starting to search for it. ll is an alias for ls -al and l is an alias for ls.
2013 mv fig figs
2014 pandoc -s -o out/figs.pdf fig_ce_ms.md
2015 l
2016 history | grep pandoc
2017 history | grep pandoc | grep svg
2018 cat pandoc-svg.py
2019 cat ~/edu/notes/notetaking_approach.md
2020 "pandoc -f markdown -t plain"
2021 pandoc -f markdown -t plain
2022 pandoc -f markdown -t plain abs_ce_ms.md
2023 pandoc -f markdown -t plain met_ce_ms.md
2024 cat met_ce_ms.md
2025 echo "pandoc -f markdown -t plain" >> ~/edu/notes/notetaking_approach.md
2026 pandoc -o out/figs.pdf fig_ce_ms.md
2027 pandoc -o out/figs.pdf fig_ce_ms.md --filter=
2028 ls
2029 pandoc -o out/figs.pdf fig_ce_ms.md --filter=./pandoc-svg.py
2030 ls fig_ce_ms.md
2031 ls figs
2032 ls ../
2033 ls
2034 l
2035 ll
2036 sudo updatedb
2037 locate fig