mirror of
				https://github.com/kevinveenbirkenbach/directory-content-scanner.git
				synced 2025-11-04 11:58:11 +00:00 
			
		
		
		
	shortend description tags
This commit is contained in:
		
							
								
								
									
										6
									
								
								scan.py
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								scan.py
									
									
									
									
									
								
							@@ -79,14 +79,14 @@ class DirectoryHandler:
 | 
				
			|||||||
            if no_comments:
 | 
					            if no_comments:
 | 
				
			||||||
                file_type = os.path.splitext(file_path)[1]
 | 
					                file_type = os.path.splitext(file_path)[1]
 | 
				
			||||||
                content = CodeProcessor.remove_comments(content, file_type)
 | 
					                content = CodeProcessor.remove_comments(content, file_type)
 | 
				
			||||||
            print(f"======== File Path: {file_path} ========")
 | 
					            print(f"<< START: {file_path} >>")
 | 
				
			||||||
            if compress:
 | 
					            if compress:
 | 
				
			||||||
                compressed_content = CodeProcessor.compress(content)
 | 
					                compressed_content = CodeProcessor.compress(content)
 | 
				
			||||||
                print(f"======== Compressed Code ========")
 | 
					                print(f"COMPRESSED CODE: ")
 | 
				
			||||||
                print(compressed_content)
 | 
					                print(compressed_content)
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                print(content)
 | 
					                print(content)
 | 
				
			||||||
            print("==================================\n")
 | 
					            print("<< END >>\n")
 | 
				
			||||||
        except UnicodeDecodeError:
 | 
					        except UnicodeDecodeError:
 | 
				
			||||||
            print(f"Warning: Could not read file due to encoding issues: {file_path}")
 | 
					            print(f"Warning: Could not read file due to encoding issues: {file_path}")
 | 
				
			||||||
            exit(1)
 | 
					            exit(1)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user