Beispiel #1
0
        static void OnDirectory (string path, Wmp11ContentDirectoryBuilder builder)
        {
            foreach (var file in Directory.GetFiles (path)) {
                builder.OnFile (file);
            }

            foreach (var directory in Directory.GetDirectories (path)) {
                OnDirectory (directory, builder);
            }
        }
Beispiel #2
0
 static FileSystemContentDirectory BuildContentDirectory (string path)
 {
     var builder = new Wmp11ContentDirectoryBuilder (GenerateUrl ());
     OnDirectory (path, builder);
     return builder.Build ();
 }