(Linux allows this it'll clean up the file when it is closed. This is the reverse of how temporary files work, where you create a temp file & then delete it, before writing to it. Atomic, but with no mess of figuring out a temporary name. That is, you write the data out to disk, and hardlink it into its final resting place. I don't think it quite exists, but I really think the right answer here is to create a deleted file, and then give it a filename. I don't think anyone minds an extra rename (and, as you say, it gets you a sort of atomicity with the extract) but moving a file out of a temp dir can mean doing a full copy, if the destination is not on the same FS.Īs a side note: for POSIX OS's, this is why I much prefer the FD based operations. More power to you, oh-as-of-yet-unknown WinZip/WinRar open source replacement-writing author!!! Įxtract and move is fine, but many programs extract to a temp dir first, and then copy the file. I'll be glad to bring a bit of developer's attention on Lazarus/FreePascal through my project."ĭelphi may be dead(*), but Lazarus/FreePascal is very much alive and kicking. I like Pascal-related languages and I think Lazarus/FreePascal is one of the best cross-platform IDE available I like it even more because it is open source and because it's growing day by day in a more mature and powerful IDE. I'm developing PeaZip project in FreePascal language, under Lazarus IDE. 7z, Google Android's apk, bz, bz2, bzip2, tbz2, tbz, gz, gzip, tgz, tpz, tar, zip, zipx, z01, smzip, arj, cab, chm, chi, chq, chw, hxs, hxi, hxr, hxq, hxw, lit, cpio, deb, lzh, lha, rar, r01, 00, rpm, z, taz, tz, iso, Java (jar, ear, war), pet, pup, pak, pk3, pk4, slp,, xpi, wim, u3p, lzma86, lzma, udf, xar, Apple's dmg, hfs, part1, split, swm, tpz, kmz, xz, txz, vhd, mslz, apm, mbr, fat, ntfs, exe, dll, sys, msi, msp, Open Office / Libre Office (ods, ots, odm, oth, oxt, odb, odf, odg, otg, odp, otp, odt, ott), gnm, Microsoft Office (doc, dot, xls, xlt, ppt, pps, pot, docx, dotx, xlsx, xltx), Flash (swf, flv), quad, balz, bcm, zpaq, paq8f, paq8jd, paq8l, paq8o, lpaq1, lpaq5, lpaq8, ace through separate unace plugin (closed source) available on PeaZip add-ons page, arc, wrc, 001, pea, cbz, cbr, cba, cb7, cbt (and more.)"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |