- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 236
Exclude children of subdirectories from symlink #1690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
            mr-c
  merged 13 commits into
  common-workflow-language:main
from
jfennick:symlink_exclude_children
  
      
      
   
  Jul 15, 2022 
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            13 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      a9f4f4d
              
                Exclude children of subdirectories from symlink
              
              
                jfennick ebaa9b8
              
                Merge branch 'main' into symlink_exclude_children
              
              
                mr-c 3945a18
              
                Merge branch 'main' into symlink_exclude_children
              
              
                jfennick 0149875
              
                removed entry.type conditional
              
              
                jfennick 75ccc4c
              
                Merge branch 'symlink_exclude_children' of github.com:jfennick/cwltoo…
              
              
                jfennick b087d60
              
                added test_passthrough_successive
              
              
                jfennick eb62065
              
                fix E261
              
              
                jfennick cfcb848
              
                fix formatting
              
              
                jfennick 59886d6
              
                fixed --outdir
              
              
                jfennick 10b8a0a
              
                fix formatting
              
              
                jfennick e145fc5
              
                fix formatting
              
              
                jfennick 5d747db
              
                fix formatting
              
              
                jfennick f039acd
              
                fix formatting
              
              
                jfennick File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      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
    
  
  
    
              
  
    
      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
    
  
  
    
              
  
    
      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
    
  
  
    
              
  
    
      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
    
  
  
    
              
  
    
      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
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| #!/usr/bin/env cwl-runner | ||
|  | ||
| cwlVersion: v1.0 | ||
| class: Workflow | ||
|  | ||
| inputs: [] | ||
|  | ||
| steps: | ||
| # Create a test directory structure; could be done outside CWL and passed in as input. | ||
| # This input directory should be left pristine. | ||
| mkdirs: | ||
| run: | ||
| class: CommandLineTool | ||
| baseCommand: [bash, '-c', 'mkdir dir dir/subdir && touch dir/subdir/file', '-'] | ||
| inputs: [] | ||
| outputs: | ||
| mkdirs_out: | ||
| type: Directory | ||
| outputBinding: | ||
| glob: dir | ||
| in: [] | ||
| out: [mkdirs_out] | ||
|  | ||
| # Given an input directory, emit a subdirectory as output. | ||
| passthrough1: | ||
| run: | ||
| class: CommandLineTool | ||
| requirements: | ||
| - class: InitialWorkDirRequirement | ||
| listing: | ||
| - entry: $(inputs.passthrough1_in) | ||
| writable: false | ||
| baseCommand: ["true"] | ||
| inputs: | ||
| passthrough1_in: | ||
| type: Directory | ||
| outputs: | ||
| passthrough1_subdir: | ||
| type: Directory | ||
| outputBinding: | ||
| glob: $(inputs.passthrough1_in.basename)/subdir | ||
| in: | ||
| passthrough1_in: mkdirs/mkdirs_out | ||
| out: [passthrough1_subdir] | ||
|  | ||
| # Given a (sub-)directory, emit it unchanged. | ||
| passthrough2: | ||
| run: | ||
| class: CommandLineTool | ||
| requirements: | ||
| - class: InitialWorkDirRequirement | ||
| listing: | ||
| - entry: $(inputs.passthrough2_in) | ||
| writable: false | ||
| baseCommand: ["true"] | ||
| inputs: | ||
| passthrough2_in: | ||
| type: Directory | ||
| outputs: | ||
| passthrough2_subdir: | ||
| type: Directory | ||
| outputBinding: | ||
| glob: $(inputs.passthrough2_in.basename) | ||
| in: | ||
| passthrough2_in: passthrough1/passthrough1_subdir | ||
| out: [passthrough2_subdir] | ||
|  | ||
| outputs: | ||
| out: | ||
| type: Directory | ||
| outputSource: passthrough2/passthrough2_subdir | 
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI @tetron @DailyDreaming @kellrott about this proposed addition to PathMapper