Timeline for Can I test if a file exists?
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 7, 2022 at 20:44 | comment | added | Jérôme LAURENS | You can also test the existence of a file given its fully qualified path: '/full/path/to/file/' on unix, or relative to the parent. \IfFileExists really means 'If I can read the file': \IfFileExists will execute the false branch if a file exist but you are not authorized to read it. | |
| May 27, 2019 at 9:12 | comment | added | Faheem Mitha | @LéoLéopoldHertz준영 LaTeX kernel. No package necessary. | |
| Nov 29, 2016 at 12:58 | comment | added | Léo Léopold Hertz 준영 | What is the package here for \IfFileExists? | |
| Oct 14, 2015 at 13:55 | comment | added | yo' | @fuenfundachtzig That's quite possible, I didn't check. | |
| Oct 14, 2015 at 13:39 | comment | added | fuenfundachtzig | This seems to have problems with underscores in filenames? | |
| Feb 14, 2013 at 21:34 | history | edited | yo' | CC BY-SA 3.0 | added 147 characters in body |
| Feb 14, 2013 at 17:56 | comment | added | Bianca Lobo | To add to @tohecz answer (I don't believe I can edit yet), I believe that if you want to restrict it to just the current directory, you can use this: \IfFileExists{./filename}{true-branch}{false-branch} and the ./ stops it looking in the other places. | |
| Feb 14, 2013 at 13:40 | vote | accept | DaPhil | ||
| S Feb 14, 2013 at 13:20 | history | answered | yo' | CC BY-SA 3.0 | |
| S Feb 14, 2013 at 13:20 | history | made wiki | Post Made Community Wiki by yo' |