mirror of
				https://github.com/StuffAnThings/qbit_manage.git
				synced 2025-10-31 16:49:24 +08:00 
			
		
		
		
	bug_fix: creating empty recyclebin in root dir #77
This commit is contained in:
		
							parent
							
								
									393538acf5
								
							
						
					
					
						commit
						ac78bd5025
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -197,7 +197,10 @@ class Config: | |||
|                     default_recycle = os.path.join(self.remote_dir, os.path.basename(self.data['directory']['recycle_bin'].rstrip('/'))) | ||||
|                 else: | ||||
|                     default_recycle = os.path.join(self.remote_dir, '.RecycleBin') | ||||
|                 self.recycle_dir = self.util.check_for_attribute(self.data, "recycle_bin", parent="directory", var_type="path", default=default_recycle, make_dirs=True) | ||||
|                 if self.recyclebin['split_by_category']: | ||||
|                     self.recycle_dir = self.util.check_for_attribute(self.data, "recycle_bin", parent="directory", default=default_recycle) | ||||
|                 else: | ||||
|                     self.recycle_dir = self.util.check_for_attribute(self.data, "recycle_bin", parent="directory", var_type="path", default=default_recycle, make_dirs=True) | ||||
|             else: | ||||
|                 self.recycle_dir = None | ||||
|             if self.recyclebin['enabled'] and self.recyclebin['save_torrents']: | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue