python pycdlib-iso reader changes the filename
iso_file = “/path_to_iso” iso = pycdlib.PyCdlib() iso.open(iso_file) for dir in iso.walk(iso_path=”/”): dir_name = dir[0] file_list = dir[2] print(dir_name) for file in file_list: if “;1″ in file: file = file.strip(‘;1’) print(” ” + file) #### some additional logic Essentially I want to read each file name and for now print it out. I am expecting an […]
python pycdlib-iso reader changes the filename
iso_file = “/path_to_iso” iso = pycdlib.PyCdlib() iso.open(iso_file) for dir in iso.walk(iso_path=”/”): dir_name = dir[0] file_list = dir[2] print(dir_name) for file in file_list: if “;1″ in file: file = file.strip(‘;1’) print(” ” + file) #### some additional logic Essentially I want to read each file name and for now print it out. I am expecting an […]
python pycdlib-iso reader changes the filename
iso_file = “/path_to_iso” iso = pycdlib.PyCdlib() iso.open(iso_file) for dir in iso.walk(iso_path=”/”): dir_name = dir[0] file_list = dir[2] print(dir_name) for file in file_list: if “;1″ in file: file = file.strip(‘;1’) print(” ” + file) #### some additional logic Essentially I want to read each file name and for now print it out. I am expecting an […]
python pycdlib-iso reader changes the filename
iso_file = “/path_to_iso” iso = pycdlib.PyCdlib() iso.open(iso_file) for dir in iso.walk(iso_path=”/”): dir_name = dir[0] file_list = dir[2] print(dir_name) for file in file_list: if “;1″ in file: file = file.strip(‘;1’) print(” ” + file) #### some additional logic Essentially I want to read each file name and for now print it out. I am expecting an […]
python pycdlib-iso reader changes the filename
iso_file = “/path_to_iso” iso = pycdlib.PyCdlib() iso.open(iso_file) for dir in iso.walk(iso_path=”/”): dir_name = dir[0] file_list = dir[2] print(dir_name) for file in file_list: if “;1″ in file: file = file.strip(‘;1’) print(” ” + file) #### some additional logic Essentially I want to read each file name and for now print it out. I am expecting an […]
python pycdlib-iso reader changes the filename
iso_file = “/path_to_iso” iso = pycdlib.PyCdlib() iso.open(iso_file) for dir in iso.walk(iso_path=”/”): dir_name = dir[0] file_list = dir[2] print(dir_name) for file in file_list: if “;1″ in file: file = file.strip(‘;1’) print(” ” + file) #### some additional logic Essentially I want to read each file name and for now print it out. I am expecting an […]
python pycdlib-iso reader changes the filename
iso_file = “/path_to_iso” iso = pycdlib.PyCdlib() iso.open(iso_file) for dir in iso.walk(iso_path=”/”): dir_name = dir[0] file_list = dir[2] print(dir_name) for file in file_list: if “;1″ in file: file = file.strip(‘;1’) print(” ” + file) #### some additional logic Essentially I want to read each file name and for now print it out. I am expecting an […]
python pycdlib-iso reader changes the filename
iso_file = “/path_to_iso” iso = pycdlib.PyCdlib() iso.open(iso_file) for dir in iso.walk(iso_path=”/”): dir_name = dir[0] file_list = dir[2] print(dir_name) for file in file_list: if “;1″ in file: file = file.strip(‘;1’) print(” ” + file) #### some additional logic Essentially I want to read each file name and for now print it out. I am expecting an […]
Python write file to BytesIO
I have a io.BytesIO
object to which I want to write the contents of a file. How can I do that in Python3.12?