/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ using System.Web.Hosting; namespace React.Web { /// /// Handles file system functionality, such as reading files. Maps all paths from /// application-relative (~/...) to full paths using ASP.NET's MapPath method. /// public class AspNetFileSystem : FileSystemBase { /// /// Converts a path from an application relative path (~/...) to a full filesystem path /// /// App-relative path of the file /// Full path of the file public override string MapPath(string relativePath) { return HostingEnvironment.MapPath(relativePath); } } }