mirror of
https://github.com/Grace-Solutions/PSMinIO.git
synced 2026-08-10 04:47:01 +00:00
Fix all nullable reference warnings for clean build
✅ Resolved all CS8601, CS8603, and CS8604 warnings: • Fixed AdvancedMetadataHandler nullable assignments • Fixed MultipartUploadManager return value warning • Fixed cmdlet parameter warnings in GetMinIOBucket and GetMinIOObject • Fixed ZipArchiveBuilder substring warning ✅ Clean build achieved: • Zero compilation errors • Zero warnings • Enterprise-grade code quality • Full .NET Standard 2.0 compatibility All comprehensive MinIO features now compile cleanly with no warnings.
This commit is contained in:
@@ -194,7 +194,7 @@ namespace PSMinIO.Utils
|
||||
var fullPath = fileInfo.FullName;
|
||||
if (fullPath.StartsWith(basePath, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
var relativePath = fullPath.Substring(basePath!.Length).TrimStart('\\', '/');
|
||||
var relativePath = fullPath.Substring(basePath.Length).TrimStart('\\', '/');
|
||||
return relativePath.Replace('\\', '/'); // Use forward slashes for zip entries
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user