Пример #1
0
        /// <summary>
        /// Initates a new MusicDirectory or laods an existing configuration
        /// </summary>
        /// <param name="directory">the base directory</param>
        /// <param name="recursive">indicates whether subdirs should get searched aswell</param>
        public MusicDirectory(string directory, bool recursive)
        {
            this.recursive = recursive;
            Configuration  = new DirectoryConfiguration(directory);

            if (File.Exists(Configuration.ConfigFile))
            {
                Configuration = DirectoryConfiguration.LoadConfiguration(Configuration.ConfigFile);
            }
        }
Пример #2
0
 public DirectoryProcessor(string directory, bool recursive, DirectoryConfiguration configuration)
 {
     path               = directory;
     this.recursive     = recursive;
     this.configuration = configuration;
 }
Пример #3
0
 public AudioPathSet(TFile tagFile, DirectoryConfiguration configuration, string extension)
 {
     this.tagFile       = tagFile;
     this.configuration = configuration;
     this.extension     = extension;
 }
Пример #4
0
 /// <summary>
 /// Initiates a new FileProcessor
 /// </summary>
 /// <param name="file">the fiel to process</param>
 /// <param name="configuration">the config to read from</param>
 public FileProcessor(string file, DirectoryConfiguration configuration)
 {
     this.file          = file;
     this.configuration = configuration;
 }