thanks for the quick answer! This what I have now: Collecting dcm-pics in a pydicom-fileset and write it down
from os.path import isdir, join
from pydicom.fileset import FileSet
path2dcm = r"D:\Eigene Dokumente\DICOM-Bench\WenigerScans\vDICOM"
instanceList =[]
def ListFolderEntries (path):
for entry in listdir(path):
npath = (join(path,entry))
if isdir(npath):
ListFolderEntries(npath)
else:
instanceList.append(npath)
#walk through folders recursively
#and collect the dcm-pics
ListFolderEntries (path2dcm)
for Inst in instanceList:
myFS.add(Inst)
#perhaps add her the series Desicription?
myFS.write() #creates the file structure and a DICOMDIR
this is what i get in Micro-Dicom
How to modify the DICOMDIR that series description will be displayed? Thanks!