mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	Merge pull request #1448 from joshuaboniface/nice-userconfig-paths
Use the username for the user config path
This commit is contained in:
		
						commit
						fc439cc02a
					
				@ -228,7 +228,15 @@ namespace MediaBrowser.Controller.Entities
 | 
				
			|||||||
                return System.IO.Path.Combine(ConfigurationManager.ApplicationPaths.UserConfigurationDirectoryPath, safeFolderName);
 | 
					                return System.IO.Path.Combine(ConfigurationManager.ApplicationPaths.UserConfigurationDirectoryPath, safeFolderName);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            return System.IO.Path.Combine(parentPath, Id.ToString("N"));
 | 
					            // TODO: Remove idPath and just use usernamePath for future releases
 | 
				
			||||||
 | 
					            var usernamePath = System.IO.Path.Combine(parentPath, username);
 | 
				
			||||||
 | 
					            var idPath = System.IO.Path.Combine(parentPath, Id.ToString("N"));
 | 
				
			||||||
 | 
					            if (!Directory.Exists(usernamePath) && Directory.Exists(idPath))
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                Directory.Move(idPath, usernamePath);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            return usernamePath;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public bool IsParentalScheduleAllowed()
 | 
					        public bool IsParentalScheduleAllowed()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user