Skip to content

Commit

Permalink
Replace system directory separator with "/"
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Lux committed Feb 4, 2016
1 parent d381c1f commit 1e78d5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/FakeLib/ArchiveHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ let archiveFileSpec (file : FileInfo) =
let archiveFileSpecWithBaseDir (baseDir : DirectoryInfo) (file : FileInfo) =
if not baseDir.Exists then failwithf "Directory not found: %s" baseDir.FullName
if not <| isInFolder baseDir file then failwithf "File not in base directory: (BaseDir: %s, File: %s)" baseDir.FullName file.FullName
{ InputFile = file; ArchiveEntryPath = replace (baseDir.FullName + directorySeparator) "" file.FullName }
let entryPath = replace (baseDir.FullName + directorySeparator) "" file.FullName
{ InputFile = file; ArchiveEntryPath = replace directorySeparator "/" entryPath }

let private doCompression compressor archivePath fileSpecGenerator =
Seq.map fileSpecGenerator
Expand Down

0 comments on commit 1e78d5c

Please sign in to comment.