什么条件下会生成带有一串数字后缀的文件 #3264
Answered
by
erha19
chaoyue1217
asked this question in
Q&A
什么条件下会生成带有一串数字后缀的文件
#3264
-
Beta Was this translation helpful? Give feedback.
Answered by
erha19
Jan 9, 2024
Replies: 1 comment
-
@chaoyue1217 这里估计是文件服务的逻辑造成了,因为部分系统环境下,直接覆盖文件内容可能出现权限问题,故当前采用的文件写策略是通过,新建临时文件写入内容,覆盖旧文件方式,该逻辑会造成临时文件的生成,详细代码见: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chaoyue1217
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@chaoyue1217 这里估计是文件服务的逻辑造成了,因为部分系统环境下,直接覆盖文件内容可能出现权限问题,故当前采用的文件写策略是通过,新建临时文件写入内容,覆盖旧文件方式,该逻辑会造成临时文件的生成,详细代码见:
core/packages/file-service/src/node/disk-file-system.provider.ts
Line 253 in d7a79ba