GitHub user jpiper opened a pull request: https://github.com/apache/spark/pull/14861
[SPARK-17287] [PySpark] Add `recursive` kwarg to Java Python `SparkContext.addFile` ## What changes were proposed in this pull request? Add the ability to add entire directories using the PySpark interface `SparkContext.addFile(dir, recursive=True)` ## How was this patch tested? I've added a test file in a nested folders in `python/test_support`. I use `addFile` to distribute this folder, and then read the file back using the directory structure. You can merge this pull request into a Git repository by running: $ git pull https://github.com/jpiper/spark jpiper/pyspark_addfiles Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/14861.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #14861 ---- commit cabcca30252a189def2b0357b3951fac0870a3db Author: Jason Piper <jpi...@humanlongevity.com> Date: 2016-08-29T09:53:51Z Add `recursive` kwarg to Java Python `SparkContext.addFile` ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org