mbraceproject / MBrace.StarterKit

A collection of demos and tutorials for MBrace
http://mbrace.io
57 stars 34 forks source link

Created cloud file returns invalid path in examples/200-cloud-parallel-web-download-example.fsx #93

Open Mharlin opened 7 years ago

Mharlin commented 7 years ago

When running this sample line 66 throws an exception because the file does not exist.

        local { let text = fs.File.ReadAllText(file.Path)
                return (file.Path, text.Length) })

https://github.com/mbraceproject/MBrace.StarterKit/blob/master/HandsOnTutorial.FSharp/examples/200-cloud-parallel-web-download-example.fsx#L65-L66

When the file is saved the path given is invalid. The path starts with /mbraceuserdata/pages/... while the correct path is from the /pages/... https://github.com/mbraceproject/MBrace.StarterKit/blob/master/HandsOnTutorial.FSharp/examples/200-cloud-parallel-web-download-example.fsx#L45 let! file = CloudFile.WriteAllText(path = sprintf "pages/%s.html" name, text = text)