简体   繁体   English

从自定义文件格式中提取元数据并在文件管理器中使用

[英]Extract metadata from custom file format and use in file manager

I have been looking for a tool that allows me to scan files for metadata (I have an extensive directory full of test logs that are basically my own file format. Metadata would be "fail/pass" etc.). 我一直在寻找一种允许我扫描文件中的元数据的工具(我有一个包含测试日志的广泛目录,这些目录基本上是我自己的文件格式。元数据将是“失败/通过”等)。 I would basically want to have a local or web-based file manager where I can basically add custom columns and manage my files based on the extracted metadata. 我基本上希望拥有一个本地或基于Web的文件管理器,基本上可以在其中添加自定义列并根据提取的元数据管理文件。 Does anyone know what would be a good project/tool for me to build on/start with? 有谁知道对我来说建立/开始的一个好的项目/工具是什么? I hope this is not too vague, thanks a lot! 希望这不要太含糊,非常感谢!

It would be better if you'd update the question instead. 如果您改为更新问题,那就更好了。 Look, when posting, you'd want to share your problem, not what bugs you. 看,发布时,您想分享您的问题,而不是让您感到烦恼。

Like, how did you store. 就像,您如何存储。 Its definitely possible to sort based on their test files on the log files if theres a constant format pattern. 如果存在恒定的格式模式,则绝对有可能根据日志文件上的测试文件进行排序。 In the .log files I hope they are like "a.jpg : pass ; pass ; fail" (can't be sure though) 我希望它们在.log文件中像"a.jpg : pass ; pass ; fail" (尽管不能确定)

So, write a program that finds which have passed and which have failed. 因此,编写一个程序来查找哪些已通过和哪些已失败。 In a different folder, create a file with that file name. 在另一个文件夹中,使用该文件名创建一个文件。 copy everything from source to destination in that order. 按此顺序将所有内容从源复制到目标。 This will update the timestamps and when you'll sort by date/time in any file manager in that folder, you'll see your sorted results. 这将更新时间戳,当您在该文件夹中的任何文件管理器中按日期/时间排序时,您将看到排序的结果。 I advise you to write the specifications of the log file and get into work. 我建议您编写日志文件的规范并开始工作。 Its certainly easy enough unless you are not using any delimiters. 除非您不使用任何定界符,否则它肯定很容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM