From 3448238b5623869886fe359f7525db44fed28c6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=20=E6=96=B0=E8=B7=AF?= Date: Sat, 9 Oct 2021 15:30:04 +0800 Subject: [PATCH] fix a subfoler with space --- src/Fornax/Generator.fs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Fornax/Generator.fs b/src/Fornax/Generator.fs index b46fde1..9492511 100644 --- a/src/Fornax/Generator.fs +++ b/src/Fornax/Generator.fs @@ -443,9 +443,7 @@ let generateFolder (projectRoot : string) (isWatch: bool) = let sw = Stopwatch.StartNew() let relative toPath fromPath = - let toUri = Uri(toPath) - let fromUri = Uri(fromPath) - toUri.MakeRelativeUri(fromUri).OriginalString + Path.GetRelativePath(toPath, fromPath).Replace("\\","/") let projectRoot = if projectRoot.EndsWith (string Path.DirectorySeparatorChar) then projectRoot