- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 182
 
"is_regular_file" for file trait + integration test #475
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
      
      
    Conversation
  
    
      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
    
  
  
    
    88dbcc1    to
    3018cfb      
    Compare
  
    
              
                    phip1611
  
              
              commented
              
                  
                    Jul 31, 2022 
                  
              
              
            
            
147343c    to
    2c12656      
    Compare
  
    
              
                    phip1611
  
              
              commented
              
                  
                    Jul 31, 2022 
                  
              
              
            
            
| 
           Short notice: I'm currently on vacation and probably won't work on the PRs until the last week of August  | 
    
2c12656    to
    2bf06d5      
    Compare
  
    | 
           This is ready for the next review round.  | 
    
2bf06d5    to
    8f009c0      
    Compare
  
    
              
                    nicholasbishop
  
              
              requested changes
              
                  
                    Sep 1, 2022 
                  
              
              
            
            
8f009c0    to
    83ade2e      
    Compare
  
    759588f    to
    e20ba60      
    Compare
  
    e20ba60    to
    eb2659c      
    Compare
  
    This is necessary as preparation for the integration test.
eb2659c    to
    38d7eae      
    Compare
  
    | 
           Ready for another review round @nicholasbishop  | 
    
38d7eae    to
    f8bd537      
    Compare
  
    f8bd537    to
    09b01a9      
    Compare
  
    
              
                    nicholasbishop
  
              
              approved these changes
              
                  
                    Sep 6, 2022 
                  
              
              
            
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  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.
  
    
  
    
This MR adds the "is_regular_file" and "is_regular_directory"-methods for the File-trait which is especially useful if you work with the generic
FileHandleabstraction.Furthermore, it splits up the existing integration test a little for a clearer separation of concerns. The simple file system protocol test now tests creating a file in the root volume. On this file, I test my newly created additions.Additionally,FileHandle::into_typenow returns a direct value instead of a Result. If we have a failure there, it is a hard-bug in the uefi-rs lib and not something the user should take care of.