Jar_path = r"C:\Users\esbld_hp\Documents\project\30293915.zip\30293915\files\products\Planning\lib\HspJS.jar"ĭeleted_files = delete_duplicate_files(jar_zip_path, directory_path)Ĭode is not giving errors but at the same time its not deleting the duplicates. With just a few clicks, you can free up space on your. It uses advanced algorithms to quickly scan your computer and detect all the duplicate files and folders. Easy Duplicat Finder is an awsome software that helps you find and delete duplicate files on your computer. Jar_zip_path = r"C:\Users\esbld_hp\Documents\project\30293915.zip"ĭirectory_path = r"C:\Users\esbld_hp\Documents\project\30293915.zip\30293915\files\products\Planning\AppServer\InstallableApps\Common\HyperionPlanning.ear\HyperionPlanning.war\WEB-INF\classes" Easy Duplicate Finder is a powerful tool designed to quickly and easily find and remove duplicate files from your computer. With zipfile.ZipFile(war_file_path, 'r') as war_file: If ('.class') and os.path.basename(item.filename) = file_name:ĭef file_exists_in_war(file_name, war_file_path): With zipfile.ZipFile(jar_file_path, 'r') as jar_file: If file_exists_in_jar(file, jar_file_path) or file_exists_in_war(file, war_file_path):ĭef file_exists_in_jar(file_name, jar_file_path): Direct link Easy Duplicate Finder.zip download from FILENINJA.NET with file size 53810 bytes and last modified on T13:28:20.000Z. # Compare and delete duplicate files in the directory and its subdirectoriesįor root, dirs, files in os.walk(directory_path): Print(f"Deleting duplicates in directory: ") War_file_path = os.path.join(os.getcwd(), "HyperionPlanning.war")Įar_file.extract("HyperionPlanning.war", os.getcwd()) With zipfile.ZipFile(ear_file_path, 'r') as ear_file: Jar_file_path = os.path.join(os.getcwd(), item.filename)Įar_file_path = os.path.join(os.path.dirname(jar_file_path), "HyperionPlanning.ear") # Extract the JAR file from the ZIP archive With zipfile.ZipFile(jar_zip_path, 'r') as zip_file: import osĭef delete_duplicate_files(jar_zip_path, directory_path): We would like to remove it from one of the location to avoid duplication.īelow is the code I have written but its not deleting duplicates. Parallels Toolbox has a feature called Find Duplicates that you can use on both Mac and Windows to search and delete duplicate files without hassle. We have a jenkins build where we noticed a few hundred class files are being packaged at two different locations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |