Is there a package deal that takes care of the complete course of for transferring recordsdata/directories?
For instance, if the supply and vacation spot are on the identical partition use os.Rename
, if they’re on completely different partitions copy the supply to the vacation spot and if there have been no errors delete the supply.
Is there a package deal that does all that for me? Ideally, it ought to assist Linux and Home windows.
Good day there, I had some code which I take advantage of in my mission as exterior module. You may verify it right here. Dunno if it’s precisely what you’re in search of, and typically it’s nonetheless work in progress.
1 Like
You bought fairly shut, it is vitally helpful to maneuver between completely different partitions (from disk C to D for instance), after I wish to transfer in the identical partition (D:someFolder to D:anotherFolder for instance) your package deal nonetheless makes a whole copy when it’s best to simply use an os.Rename().
Realizing if the supply and vacation spot are in the identical partition appears not so simple as it appears.