Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
conf_replace
#4
(10-08-2022, 02:57 AM)alive Wrote:
(10-08-2022, 01:13 AM)longpanda Wrote: conf_add will break the directory metadata of ISO file. 
It's not in the same difficulty level as conf_replace and IMHO it's rarely used.

conf_add 应该可以通过基于 conf_replace 的方法实现:把 ISO 内的配置文件内容读过来,加上用户定义的内容,再利用 conf_replace 把生成的配置替换进去。

这个相当于是 conf_append,我感觉没太大必要,用户自己在新的文件里面内包含原来的配置文件内容就可以了。
conf_replace 基本的使用场景就是这种,新的配置文件一般不会重新写,都是在原来的基础上修改或者增加配置。
Reply


Messages In This Thread
conf_replace - by nguyen ha thai trong - 10-07-2022, 06:33 PM
RE: conf_replace - by longpanda - 10-08-2022, 01:13 AM
RE: conf_replace - by alive - 10-08-2022, 02:57 AM
RE: conf_replace - by longpanda - 10-08-2022, 03:38 AM
RE: conf_replace - by nguyen ha thai trong - 10-09-2022, 02:01 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)