microsoft / jupyter-core

Library for writing Jupyter kernels in .NET Core
MIT License
108 stars 23 forks source link

Allow nested directories in KernelSpecResources #64

Closed theRoughCode closed 4 years ago

theRoughCode commented 4 years ago

Currently, .WithKernelSpecResources fails silently when there is a key that represents a nested file within a subdirectory. For example:

.WithKernelSpecResources<Program>(
  new Dictionary<string, string>
  {
    ["folder/file.js"] = "echo-kernel.res.folder.file.js"
  }
)

This PR aims to fix this by creating the directory if it doesn't exist.