コード例 #1
0
        /// <summary>
        /// Get the path to this file relative to the root of the stream
        /// </summary>
        /// <returns>Relative path to the file</returns>
        public string GetRelativePath()
        {
            StringBuilder Builder = new StringBuilder();

            Directory.AppendPath(Builder);
            Builder.Append(Name);
            return(Builder.ToString());
        }
コード例 #2
0
 /// <summary>
 /// Append the relative path to this directory to the given string builder
 /// </summary>
 /// <param name="Builder">String builder to append to</param>
 public void AppendPath(StringBuilder Builder)
 {
     if (ParentDirectory != null)
     {
         ParentDirectory.AppendPath(Builder);
         Builder.Append(Name);
     }
     Builder.Append('/');
 }