Created
April 1, 2010 22:16
-
-
Save drio/352436 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def self.dir_exists?(sea) | |
| found = [] | |
| SNFS.each do |s| | |
| path = SEA_DIR_TEMPLATE.gsub(/SS/, s).gsub(/II/, sea.instrument) | |
| log("I can't find #{path}", 1) unless File.exists?(path) | |
| re = %r{ ^#{path}/\d+/\d+/#{sea}$ } | |
| puts re | |
| Find.find(path) do |p| | |
| puts p | |
| #sea_dir = a_dir_for(sea) | |
| #found << p if p == sea_dir and File.directory?(sea_dir) | |
| found << p if p =~ /#{re}/ and File.directory?(p) | |
| end | |
| end | |
| found | |
| end |
Author
Author
/tmp/snfs4/next-gen/solid/analysis/solid0312/2010/03/0312_20100211_1_SP_ANG_LVNC109718_1_1sA_01003280944_3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/tmp/snfs4/next-gen/solid/analysis/solid0312
/tmp/snfs4/next-gen/solid/analysis/solid0312/bf.config.yaml
/tmp/snfs4/next-gen/solid/analysis/solid0312/2010
/tmp/snfs4/next-gen/solid/analysis/solid0312/2010/03
/tmp/snfs4/next-gen/solid/analysis/solid0312/2010/03/0312_20100211_1_SP_ANG_LVNC109718_1_1sA_01003280944_3
/tmp/snfs4/next-gen/solid/analysis/solid0312/2010/03/0312_20100211_1_SP_ANG_LVNC109718_1_1sA_01003280944_3/input
/tmp/snfs4/next-gen/solid/analysis/solid0312/2010/03/0312_20100211_1_SP_ANG_LVNC109718_1_1sA_01003280944_3/input/0312_20100211_1_SP_ANG_LVNC109718_1_1sA_01003280944_3_F3_QV.qual
/tmp/snfs4/next-gen/solid/analysis/solid0312/2010/03/0312_20100211_1_SP_ANG_LVNC109718_1_1sA_01003280944_3/input/0312_20100211_1_SP_ANG_LVNC109718_1_1sA_01003280944_3_F3.csfasta