This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
from pathlib import Path | |
from machfs import Volume | |
from machfs.directory import File | |
PARSER = argparse.ArgumentParser( | |
description="set the copy protection bit on a file", | |
) | |
PARSER.add_argument("input_image", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
from pathlib import Path | |
from dataclasses import dataclass | |
def from_beint(b): | |
return int.from_bytes(b, 'big') |