Example #1
0
        public override VirtualDirectory GetDirectory(string virtualDir)
        {
            var rem = new RemappedDir(virtualDir, GetFullPath(virtualDir));

            if (rem.Exists)
            {
                Trace.TraceInformation("[SubfolderVpp]: remapping DIR {0} to {1}", virtualDir, rem.FullPath.FullName);
                return(rem);
            }

            return(base.GetDirectory(virtualDir));
        }
Example #2
0
        public override VirtualDirectory GetDirectory(string virtualDir)
        {
            if (IsVirtualPath(virtualDir, true, false))
            {
                var rem = new RemappedDir(virtualDir, GetRemappedFullPath(virtualDir));
                if (rem.Exists)
                {
                    Trace.TraceInformation("[SubfolderVpp]: remapping DIR {0} to {1}", virtualDir, rem.FullPath.FullName);
                    return rem;
                }
            }

            return base.GetDirectory(virtualDir);
        }