Exclude channels in a file #217
Replies: 3 comments 2 replies
-
Hey @rhodessteve, Slackdump does not understand the combination of characters, as you probably already experienced, given the ^@your_file.txt syntax, treats it as the channel with the name "@your_file.txt", and you get "invalid link" error. You probably already saw this, but for completeness: the syntax of the file is described in this doc The file syntax is "one item per line", and the syntax of the file is the following:
If you have the file with excludes, you can run it through sed to add the "exclude" control character:
or, in-place:
|
Beta Was this translation helpful? Give feedback.
-
I see. Slackdump reads the file, and the exclusions are in the file. Makes sense. Thanks for the furhter info about the formatting of the file, and that I can also nest the files. Very handy. |
Beta Was this translation helpful? Give feedback.
-
I gave it a thought, and I think the approach of having ^@ introduces some unnecessary complex logic. Consider a file is specified with negation character "^@file.txt".
For example, consider the file with the following contents, let's refer to it as "first.txt":
Using the current logic, slackdump will process:
and will ignore:
If we introduce the ^@ syntax, what should happen to CHAN2, CHAN3 and CHAN5? |
Beta Was this translation helpful? Give feedback.
-
The docs suggest using the @data.txt to only download the channels you want in a text file, and to use ^ to exclude certain channels. But the combination of ^@data.txt does not work. Can we exclude a list of channels from a file? Also what is the format of the file? I have exported a CSV of channels from the Slack UI and have just the channels in that CSV.
Beta Was this translation helpful? Give feedback.
All reactions