CmisSync.WindowsPathRepresentationConverter.RemoteToLocal C# (CSharp) Метод

RemoteToLocal() публичный Метод

Convert a path from CMIS to Windows.
public RemoteToLocal ( string remotePath ) : string
remotePath string
Результат string
        public string RemoteToLocal(string remotePath)
        {
            if (String.IsNullOrEmpty(remotePath))
            {
                return remotePath;
            }

            string path = remotePath;

            // On the CMIS side, backward slash is not a special character, it can be part of a document's name.
            path = path.Replace('\\', '¥');

            // CMIS slash to Windows backward slash.
            path = path.Replace('/', '\\'); // Convert CMIS file separator to Windows file separator.

            // Other characters.
            //path = path.Replace('<', '<'); // The < character is allowed on CMIS, but not on Windows, so thr trick is to use its two-bytes representation.
            //path = path.Replace('>', '>');
            //path = path.Replace(':', ':');
            //path = path.Replace('*', '*');
            //path = path.Replace('?', '?');
            //path = path.Replace('|', '|');

            // Only for tests on ECMs that have the same character restrictions as Windows, such as Alfresco.
            //path = path.Replace('&', '&');

            return path;
        }
WindowsPathRepresentationConverter