mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05:00 
			
		
		
		
	
							parent
							
								
									868aedd212
								
							
						
					
					
						commit
						b653a20d15
					
				@ -6,6 +6,9 @@ export const normalizeTreePath = (path: string) => path.replace(/^\//, '').repla
 | 
			
		||||
 | 
			
		||||
export function buildTree(paths: string[]) {
 | 
			
		||||
  const root: RecursiveObject = {};
 | 
			
		||||
 | 
			
		||||
  paths.sort();
 | 
			
		||||
 | 
			
		||||
  for (const path of paths) {
 | 
			
		||||
    const parts = path.split('/');
 | 
			
		||||
    let current = root;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user