You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to handle filenames/filepaths that include more than one '.' character, the library infers the wrong file type since it arbitrarily looks for the "qvd"/"xml" extension after the first period. Better to use a regular expression to make this determination. I fixed a fork of this by revising qvdfile.py by adding:
import re
And changing line 25 to:
self.mode = os.O_RDONLY if re.match('^.*qvd$', name, re.IGNORECASE) else os.O_WRONLY
The text was updated successfully, but these errors were encountered:
When attempting to handle filenames/filepaths that include more than one '.' character, the library infers the wrong file type since it arbitrarily looks for the "qvd"/"xml" extension after the first period. Better to use a regular expression to make this determination. I fixed a fork of this by revising
qvdfile.py
by adding:import re
And changing line 25 to:
self.mode = os.O_RDONLY if re.match('^.*qvd$', name, re.IGNORECASE) else os.O_WRONLY
The text was updated successfully, but these errors were encountered: