AccessProviderSample.AccessDBProvider.ChunkPath C# (CSharp) Method

ChunkPath() private method

Breaks up the path into individual elements.
private ChunkPath ( string path ) : string[]
path string The path to split.
return string[]
        private string[] ChunkPath(string path)
        {
            // Normalize the path before splitting
            string normalPath = NormalizePath(path);

            // Return the path with the drive name and first path
            // separator character removed, split by the path separator.
            string pathNoDrive = normalPath.Replace(this.PSDriveInfo.Root
                                           + pathSeparator, "");

            return pathNoDrive.Split(pathSeparator.ToCharArray());
        }