protected override void BeginProcessing() { base.BeginProcessing(); if (root == null && !noFullPath) { root = System.IO.Path.GetDirectoryName(Path); } else if (noFullPath) { root = null; } parser = new ParseOPT(quote: Quote, delimiter: Delimiter, root: root); stream = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.Read); if (psEncoding == FileSystemCmdletProviderEncoding.Default) { reader = new StreamReader(stream, true); } else { reader = new StreamReader(stream, CmdletEncoding.Convert(psEncoding)); } }
protected override void BeginProcessing() { base.BeginProcessing(); parser = new ParseOPT(); }