public AaxFileItem(string path) { FileName = path; string ext = Path.GetExtension(path).ToLowerInvariant(); AA = ext == ".aa"; FileSize = new FileInfo(path).Length; TagAndFileNamingHelper.ReadMetaData(this); }
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()); } }