File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed 
src/main/java/org/cryptomator/cryptofs Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 1818@ CryptoFileSystemScoped 
1919public  class  DirectoryIdBackup  {
2020
21- 	//visible and existing for testing 
2221	private  Cryptor  cryptor ;
2322
2423	@ Inject 
Original file line number Diff line number Diff line change 88import  java .nio .channels .Channels ;
99import  java .nio .channels .FileChannel ;
1010import  java .nio .charset .StandardCharsets ;
11+ import  java .nio .file .Files ;
1112import  java .nio .file .NoSuchFileException ;
1213import  java .nio .file .Path ;
1314import  java .nio .file .StandardOpenOption ;
@@ -24,6 +25,7 @@ public DirectoryIdLoader() {
2425
2526	@ Override 
2627	public  String  load (Path  dirFilePath ) throws  IOException  {
28+ 		//TODO: replace by Files.readString(StandardCharsets.UTF_8) 
2729		try  (FileChannel  ch  = FileChannel .open (dirFilePath , StandardOpenOption .READ );
2830			 InputStream  in  = Channels .newInputStream (ch )) {
2931			long  size  = ch .size ();
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments