Skip to content

The catalogue is not created automatically #3

@gecube

Description

@gecube

The catalogue _files/storage is not created automatically.

$ wayslack my-export
Note: directory will be created: my-export
API token for my-export (see: https://api.slack.com/custom-integrations/legacy-tokens): ***********
Processing: my-export
Traceback (most recent call last):
  File "/usr/bin/wayslack", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/wayslack.py", line 916, in main
    with SlackArchive(slack, a) as archive:
  File "/usr/lib/python2.7/site-packages/wayslack.py", line 831, in __enter__
    self.downloader = Downloader(self.slack.api.token, self.path / "_files" / "storage")
  File "/usr/lib/python2.7/site-packages/wayslack.py", line 257, in __init__
    self.path.mkdir()
  File "/usr/lib/python2.7/site-packages/pathlib.py", line 1103, in mkdir
    self._accessor.mkdir(self, mode)
  File "/usr/lib/python2.7/site-packages/pathlib.py", line 346, in wrapped
    return strfunc(str(pathobj), *args)
OSError: [Errno 2] No such file or directory: 'my-export/_files/storage'

If I create it manually, the process of downloading files is successfully proceeding further.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions