D_Inventor
07/10/2023, 2:00 PMhuwred
07/10/2023, 2:09 PMD_Inventor
07/10/2023, 2:29 PMhuwred
07/10/2023, 2:31 PMD_Inventor
07/11/2023, 6:07 AMD_Inventor
07/11/2023, 7:30 AMSebastiaan
07/11/2023, 10:53 AMD_Inventor
07/11/2023, 12:10 PMD_Inventor
07/11/2023, 12:12 PMSebastiaan
07/11/2023, 12:28 PMD_Inventor
07/12/2023, 6:05 AMD_Inventor
07/12/2023, 6:06 AMSebastiaan
07/12/2023, 7:17 AM>
to the left of wwwroot
- not sure what that triangle is called 😉Sebastiaan
07/12/2023, 7:18 AMicon-navigation-right
apparently 😁Mike Chambers
07/12/2023, 11:39 AMMike Chambers
07/12/2023, 11:42 AMMike Chambers
07/12/2023, 11:45 AMcsharp
public IEnumerable<string> GetDirectories(string path)
{
var fullPath = GetFullPath(path);
try
{
if (Directory.Exists(fullPath))
{
return Directory.EnumerateDirectories(fullPath).Select(GetRelativePath);
}
}
catch (UnauthorizedAccessException ex)
{
_logger.LogError(ex, "Not authorized to get directories for '{Path}'", fullPath);
}
catch (DirectoryNotFoundException ex)
{
_logger.LogError(ex, "Directory not found for '{Path}'", fullPath);
}
return Enumerable.Empty<string>();
}
Mike Chambers
07/12/2023, 11:46 AMD_Inventor
07/12/2023, 12:46 PMD_Inventor
07/12/2023, 12:54 PMD_Inventor
07/12/2023, 12:55 PMMike Chambers
07/12/2023, 12:59 PMViews\Partial\grid
_ViewImports.cshtml
wwwroot
App_Plugins
I know some is legacy.. but 🙂Sebastiaan
07/12/2023, 1:06 PMMike Chambers
07/12/2023, 1:07 PMMike Chambers
07/12/2023, 1:07 PMMike Chambers
07/12/2023, 1:08 PMIEnumerable<string> files = _fileSystem.GetFiles(path).Where(x => x.StartsWith(AppPlugins) || x.StartsWith(Webroot));
that aren't case insensitive?
https://github.com/umbraco/Umbraco-CMS/blob/release-10.5.1/src/Umbraco.Web.BackOffice/Trees/StaticFilesTreeController.cs#L63C1-L65C1Sebastiaan
07/12/2023, 1:13 PMSebastiaan
07/12/2023, 1:14 PMApp_Plugins1234RANDOM
- not sure why we do StartsWith
, seems.. weird.D_Inventor
07/12/2023, 1:21 PMD_Inventor
07/12/2023, 1:22 PMD_Inventor
07/12/2023, 1:22 PMD_Inventor
07/12/2023, 1:23 PMD_Inventor
07/12/2023, 1:24 PMSebastiaan
07/12/2023, 1:27 PMD_Inventor
07/12/2023, 1:30 PMSebastiaan
07/12/2023, 1:35 PMSebastiaan
07/12/2023, 1:36 PMapp_plugins
lowercased folder, does a rebase after your last push and.. TADA it's lower cased again.. 😅D_Inventor
07/12/2023, 1:39 PMSebastiaan
07/12/2023, 1:51 PMSebastiaan
07/12/2023, 1:51 PMMike Chambers
07/12/2023, 2:04 PMApp_Plugins
isn't consistent with umbraco/Data/
for instance? time to aim for a upperFirstCamelCase convention? and drop this snake case?Mike Chambers
07/12/2023, 2:05 PMD_Inventor
07/12/2023, 2:09 PMSebastiaan
07/12/2023, 2:29 PMApp_Plugins
and yeah, that won't change ever again as it would be a breaking change and it is difficult to change, thanks to Git -- as we've seen here.Sebastiaan
07/12/2023, 2:29 PMMike Chambers
07/12/2023, 4:35 PMMike Chambers
07/12/2023, 4:36 PM