Sep-20-2022, 06:10 PM
i have a list of file name patterns. where each parameter is expected in the file name varies between names. but, this list has it all. the list was read in from a configuration file. it is stored in global space so all the functions that need it can access it. these names are in f-string format in the configuration file. there are 4, 6, or 8 names. there are 2 or 3 parameters which varies by which file it is.
next, i need to make functions that take arguments for each parameter, such which directory/folder they are in for each call or which file extension it has or the file's creator (a name that varies in location in the file name through the list). one of these functions will check that each file in the given directory/folder does exist.
the parameters will be passed as arguments. but these probably should be keyword arguments so the functions can get them as a directory.
so, how would the f-strings be read in from the configuration file?
how would a function, such as the one that tests existence, get the format parameters filled in?
next, i need to make functions that take arguments for each parameter, such which directory/folder they are in for each call or which file extension it has or the file's creator (a name that varies in location in the file name through the list). one of these functions will check that each file in the given directory/folder does exist.
the parameters will be passed as arguments. but these probably should be keyword arguments so the functions can get them as a directory.
so, how would the f-strings be read in from the configuration file?
how would a function, such as the one that tests existence, get the format parameters filled in?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.