Closed demacia666666 closed 11 months ago
Hi. Sorry but I do not speak Chinese, so I had to use Google Translate, I hope I understood your issue all the same. If I'm not mistaken, you want to extract only the files, not the folders, from an archive. However, I'm not sure which of the following two cases you are referring to:
Or
BitExtractor::extractMatchingRegex(...)
with the Regular Expression ^[^/\\]+$
: such regex matches only archive's files not having \
or /
in their path (hence they are not contained in any folder!).
extractor.extract 提取文件的时候,能把其中的文件夹去掉吗