You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/06/25 19:15:15 UTC

[GitHub] [arrow] drauschenbach commented on pull request #13435: ARROW-16753: Add a FileSelector flag that enables traversal of a dir with some restricted content

drauschenbach commented on PR #13435:
URL: https://github.com/apache/arrow/pull/13435#issuecomment-1166346793

   I'm not sure how to go about setting up a test case for this. I have been using this makeshift test which happens to work on my laptop where files within /tmp are restricted:
   
   ```c++
   // localfs_test.cc
   TYPED_TEST(TestLocalFS, TraverseSomeRestrictedContent) {
     auto fs = std::make_shared<LocalFileSystem>();
     FileSelector file_selector;
     file_selector.base_dir = "/tmp";
     file_selector.allow_not_found = true;
     file_selector.allow_errors = true;
     file_selector.recursive = true;
     std::vector<FileInfo> infos;
     ASSERT_OK_AND_ASSIGN(infos, fs->GetFileInfo(file_selector));
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org