Esempio n. 1
0
        public PhysicalAppDataFolder(
            IOrchardFileSystem parentFileSystem,
            ILogger <PhysicalAppDataFolder> logger)
        {
            _logger = logger;

            if (!parentFileSystem.DirectoryExists(InternalRootPath))
            {
                parentFileSystem.CreateDirectory(InternalRootPath);
            }

            var root = parentFileSystem.GetDirectoryInfo(InternalRootPath).FullName;

            _fileSystem = new OrchardFileSystem(root, new PhysicalFileProvider(root), _logger);
        }
Esempio n. 2
0
        public PhysicalAppDataFolder(
            IOrchardFileSystem parentFileSystem,
            ILogger<PhysicalAppDataFolder> logger)
        {
            _logger = logger;

            if (!parentFileSystem.DirectoryExists(InternalRootPath))
            {
                parentFileSystem.CreateDirectory(InternalRootPath);
            }

            var root = parentFileSystem.GetDirectoryInfo(InternalRootPath).FullName;

            _fileSystem = new OrchardFileSystem(root, new PhysicalFileProvider(root), _logger);
        }
Esempio n. 3
0
 public bool DirectoryExists(string path)
 {
     return(_fileSystem.DirectoryExists(path));
 }