Forum Discussion
FICO
5 years agoCommunity Manager
Issue with scenario attachments; attachment not found
Hello - looking for advice/help related to an issue with scenario attachments. we are using python to create several excel workbook files, which contain model input data. we have a set of strings (i...
FICO
5 years agoCommunity Manager
You can use the routine 'findfiles' to list all files or files of certain types in a specified directory (current working directory if none is specified; optionally recursive configuration=search all subdirectories), for example:
declarations
lsf: list of text
end-declarations
! List all files with extensions xls/xslx in current working directory
findfiles(lsf, "*.xls|*.xlsx")
writeln(lsf)The Mosel routines 'getfsize' or 'getfstat' will try to access (open) a file and will therefore fail to return any useful information if Mosel cannot access it because the file is locked by some other program.
I think that what could have happened is that Python still has some kind of handle on the file, perhaps it has not yet flushed the contents that is to be written?
Related Content
Related Content
- 11Views0likes2Comments
