예제 #1
0
        public AaxFileItem(string path)
        {
            FileName = path;
            string ext = Path.GetExtension(path).ToLowerInvariant();

            AA       = ext == ".aa";
            FileSize = new FileInfo(path).Length;

            TagAndFileNamingHelper.ReadMetaData(this);
        }
예제 #2
0
        public AaxFileItem(string path)
        {
            FileName = path;
            string ext = Path.GetExtension(path).ToLowerInvariant();

            HasExtAA = ext == EXT_AA;
            FileSize = new FileInfo(path).Length;

            bool succ = TagAndFileNamingHelper.ReadMetaData(this);

            if (!succ)
            {
                Log(1, this, $"{path.SubstitUser ()}, error reading meta data");
                throw new IOException(path.SubstitUser());
            }
        }