class virtual { static java.io.File newFile(String path) { return new java.io.File(rebase(path)); } static java.io.File newFile(File base, String path) { return new java.io.File(base, path); } static java.io.File newFile(String base, String path) { return new java.io.File(rebase(base), path); } static java.io.FileInputStream newFileInputStream(String path) throws java.io.IOException { return new java.io.FileInputStream(rebase(path)); } static java.io.FileOutputStream newFileOutputStream(String path) throws java.io.IOException { return new java.io.FileOutputStream(rebase(path)); } static String virtual_baseDir = ""; static String rebase(String path) { if (new File(path).isAbsolute()) return path; else return new File(new File(virtual_baseDir), path).getAbsolutePath(); } }
Began life as a copy of #2000354
Snippet is not live.
Travelled to 86 computer(s): adtiomwmedle, aoiabmzegqzx, bhatertpkbcr, brfxcrgsgrhg, cahelewubzku, cbybwowwnfue, cfunsshuasjs, cmhtpxxajurv, crvwmplrxojx, dbyzmesgzjrf, ddnzoavkxhuk, dhtvkmknsjym, digkpvzjadop, dsbpoofgtjnx, dyfldxrfteug, ecqjixtmvxlp, egsshdfjpivr, exkalrxbqyxc, fnmrsykwqckh, fumpprspadck, funhxakgkfno, gavnqejikrat, gbdqvketdppm, gkwdfizivqfm, gveowxfxqtil, gwrvuhgaqvyk, hkknpzsgoixq, honjdlwrmtdu, hxnwyiuffukg, igfbtfetlyvk, ipcmaqahdjtn, ishqpsrjomds, jlatgrcjtklg, jrjpqrqxafhk, jtubtzbbkimh, kajysqoxcvfe, kiawvgutsbre, kmhbujppghqa, ldywjnwigrac, lgdvxdgcpgrv, lijxzhtxxnix, liwcxgsjrgqn, lnjhkqwteiwi, lpdgvwnxivlt, lqsqiistucwk, mmaxggujatqf, mnzieskfvskl, mqqgnosmbjvj, mrjhfnjfopze, mrmohjpeebfc, nbgitpuheiab, nmhwwpuvbanc, nrhsverhnpsn, nrtiiiyxqhmw, omrbxrqoiqeh, omzkqqnokwlv, onfqjnomoxuw, onxytkatvevr, owkcekpozlzc, ppwwtnwhztze, pyentgdyhuwx, pzhvpgtvlbxg, qbtsjoyahagl, qhcvkqotyiga, qnhezvwmdcbn, sksrqysvpwbz, skttnvmfkzhq, slhtubpyutdj, teubizvjbppd, tjmheftkjvzt, tslmcundralx, tvejysmllsmz, tzxuzeklshpk, ucpxxyxryupy, ufhdzwgrioxs, ugbnzuvxksoj, umpqpbvfwjre, uzhyvevygbcc, uzolovmvtubr, vouqrxazstgt, vqblocesogdc, whwpvezoxzgq, winwedijdyqq, zndhoewobdyk, zrzaeipbowrh, zudvenktlakg
No comments. add comment