• unalivejoy@lemm.ee
    link
    fedilink
    English
    arrow-up
    18
    ·
    1 year ago

    Windows gives a permission error if you try to delete or edit a file that’s being executed. It has no complaints about moving it though.

    • Neato@kbin.social
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      1 year ago

      That’d be fine, though? Not an OS expert but if you move it, the computer knows where it goes any can pause and read/writes and utilize RAM for it’s in-use version. But if it tries the same thing when you deleted it, it’s going to have nowhere to put the results of whatever it’s doing. Also if the computer is just reading a file, it may assume you might not want to delete it.

      • grue@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Not an OS expert but if you move it, the computer knows where it goes any can pause and read/writes and utilize RAM for it’s in-use version.

        It’s more like it doesn’t actually go anywhere on-disk; only the tag in the filesystem pointing to it changes. I’m pretty sure once the program has an open file handle, it doesn’t care about the path anymore anyway.