Skip to content
Snippets Groups Projects
Commit ec9f755c authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Raise an error if file name given to dynare ends with a period.

parent ea9084af
Branches
Tags
No related merge requests found
......@@ -97,6 +97,10 @@ if length(dot_location)>1
error('DYNARE: Periods in filenames are only allowed for .mod or .dyn extensions')
end
if dot_location==length(fname)
error('DYNARE: Periods in filenames are only allowed for .mod or .dyn extensions')
end
% Add dyn or mod extension to the file name if not already provided.
if isempty(strfind(fname,'.'))
fnamelength = length(fname);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment