File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
scalding-core/src/main/scala/com/twitter/scalding Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,13 @@ abstract class FileSource extends SchemedSource with LocalSourceOverride with Hf
229229 * TODO: consider writing a more in-depth version of this method in [[TimePathedSource ]] that looks for
230230 * TODO: missing days / hours etc.
231231 */
232- protected def pathIsGood (globPattern : String , conf : Configuration ) = FileSource .globHasNonHiddenPaths(globPattern, conf)
232+ protected def pathIsGood (globPattern : String , conf : Configuration ) = {
233+ if (conf.getBoolean(" scalding.require_success_file" , false )) {
234+ FileSource .allGlobFilesWithSuccess(globPattern, conf, true )
235+ } else {
236+ FileSource .globHasNonHiddenPaths(globPattern, conf)
237+ }
238+ }
233239
234240 def hdfsPaths : Iterable [String ]
235241 // By default, we write to the LAST path returned by hdfsPaths
You can’t perform that action at this time.
0 commit comments