文件名中的键值对是否有标准的文件命名约定? [英] Is there a standard file naming convention for key-value pairs in filename?

查看:108
本文介绍了文件名中的键值对是否有标准的文件命名约定?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有多个数据文件,它们以它们所包含的内容命名.例如

I have multiple data files that are named after what they contain. For example

machine-testM_pid-1234_key1-value1.log

有些键和值由-和_分隔.有更好的语法吗?是否有解析器可以自动读取这些类型的文件/文件名?

There are keys and values separated by - and _. Is there a better syntax for this? Are there parsers that automatically read these kinds of files/filenames?

这里的想法是文件名是人类机器可读的.

The idea here is that the filenames are human and machine readable.

推荐答案

对于键值,似乎没有标准的文件命名约定.

There seems to be no standard file naming convention for key-values.

这篇关于文件名中的键值对是否有标准的文件命名约定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆