Here I am trying to create a function (after all) support wiping of drives using several attributes. When I try to write zeroblock in the disc, it is written, but whatever the problem is, you have failed. The reason for this is that I have done this work that has approved the drive from the drive in my test system
def wipedisk (drive, wipepepe, pass): diskisize = int (system) . HDD [Drive]. Size) DiscSact = Int (System. HDD [Drive]. Signer ()) Characterization = Int (System. HDD [Drive]. Circuit) System. HDD [drive] .start = time.time () if (wipespec == "zero"): Open ("/ dev / zero", "rb") as zero as: zeroblock = zero Rod (Sanctification) zero Close (= pass) = 0 open (with system .hdd [drive]. Device, as "wb") disk: while (pass
For file.write
says:
There is no return value to file a string type.
You mistakenly believe that write
assumes that it has succeeded in writing or not. It is not.
No comments:
Post a Comment