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
Exception in extraction: [Errno 22] Invalid argument: '.\meters\128\2022-04-09T00:00:00.json'
Code used is as follows:
import xtarfile as tarfile try: with tarfile.open( tmp_folder + f.filename, 'r:gz') as archive: archive.extractall() except Exception as e: print(f"Exception in extraction: {e}") return "Error in extracting meters.tar.gz "
Python version is:
Python 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
The text was updated successfully, but these errors were encountered:
I am trying to extract from an archive that has nested folders. Structure is as follows:
meters
--- 1
------- 1.json
--- 2
------- 2.json
....
....
....
I am getting the following error:
Exception in extraction: [Errno 22] Invalid argument: '.\meters\128\2022-04-09T00:00:00.json'
Code used is as follows:
import xtarfile as tarfile try: with tarfile.open( tmp_folder + f.filename, 'r:gz') as archive: archive.extractall() except Exception as e: print(f"Exception in extraction: {e}") return "Error in extracting meters.tar.gz "
Python version is:
Python 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
The text was updated successfully, but these errors were encountered: