@@ -19,7 +19,7 @@ in `pool`, the default pool is all workers.
1919`verbosity` set to 0 silences updates on the current file being scanned.
2020
2121"""
22- function segy_scan (dir:: String , filt:: Union{String, Regex} , keys:: Array{String,1} , blocksize:: Int ;
22+ function segy_scan (dir:: AbstractString , filt:: Union{String, Regex} , keys:: Array{String,1} , blocksize:: Int ;
2323 chunksize:: Int = CHUNKSIZE,
2424 pool:: WorkerPool = WorkerPool (workers ()),
2525 verbosity:: Int = 1 ,
4444Scans all files whose name contains `filt` in each directory of `dirs` using `blocksize`.
4545
4646"""
47- function segy_scan (dirs:: Array{String ,1} , filt:: Union{String, Regex} , keys:: Array{String,1} , blocksize:: Int ;
47+ function segy_scan (dirs:: Array{<:AbstractString ,1} , filt:: Union{String, Regex} , keys:: Array{String,1} , blocksize:: Int ;
4848 chunksize:: Int = CHUNKSIZE,
4949 pool:: WorkerPool = WorkerPool (workers ()),
5050 verbosity:: Int = 1 ,
5151 filter:: Bool = true )
5252
53- files = Array {String, 1} ()
53+ files = Array {supertype(typeof(dirs[1]*"")), 1} ()
5454 for dir in dirs
5555 endswith (dir, " /" ) ? nothing : dir *= " /"
5656 filter ? (filenames = searchdir (dir, filt)) : (filenames = [filt])
@@ -73,7 +73,7 @@ If no `blocksize` is specified, the scanner automatically detects source locatio
7373blocks of continguous traces for each source location, but each block no larger then CHUNKSIZE.
7474
7575"""
76- function segy_scan (dir:: String , filt:: Union{String, Regex} , keys:: Array{String,1} ;
76+ function segy_scan (dir:: AbstractString , filt:: Union{String, Regex} , keys:: Array{String,1} ;
7777 chunksize:: Int = CHUNKSIZE,
7878 pool:: WorkerPool = WorkerPool (workers ()),
7979 verbosity:: Int = 1 ,
9898Scans all files whose name contains `filt` in each directory of `dirs`.
9999
100100"""
101- function segy_scan (dirs:: Array{String ,1} , filt:: Union{String, Regex} , keys:: Array{String,1} ;
101+ function segy_scan (dirs:: Array{<:AbstractString ,1} , filt:: Union{String, Regex} , keys:: Array{String,1} ;
102102 chunksize:: Int = CHUNKSIZE,
103103 pool:: WorkerPool = WorkerPool (workers ()),
104104 verbosity:: Int = 1 ,
105105 filter:: Bool = true )
106106
107- files = Array {String, 1} ()
107+ files = Array {supertype(typeof(dirs[1]*"")), 1} ()
108108 for dir in dirs
109109 endswith (dir, " /" ) ? nothing : dir *= " /"
110110 filter ? (filenames = searchdir (dir, filt)) : (filenames = [filt])
0 commit comments