Esempio n. 1
0
 protected override void ProcessPath(PscxPathInfo pscxPath)
 {
     string filePath = pscxPath.ProviderPath;
     try
     {
         string shortPath = Utils.GetShortPathName(filePath);
         var shortPathInfo = new ShortPathInfo(filePath, shortPath);
         WriteObject(shortPathInfo);
     }
     catch (IOException exc)
     {
         ErrorHandler.HandleFileError(false, filePath, exc);
     }
 }
Esempio n. 2
0
        protected override void ProcessPath(PscxPathInfo pscxPath)
        {
            string filePath = pscxPath.ProviderPath;

            try
            {
                string shortPath     = Utils.GetShortPathName(filePath);
                var    shortPathInfo = new ShortPathInfo(filePath, shortPath);
                WriteObject(shortPathInfo);
            }
            catch (IOException exc)
            {
                ErrorHandler.HandleFileError(false, filePath, exc);
            }
        }