Skip to content

什么条件下会生成带有一串数字后缀的文件 #3264

Answered by erha19
chaoyue1217 asked this question in Q&A
Discussion options

You must be logged in to vote

@chaoyue1217 这里估计是文件服务的逻辑造成了,因为部分系统环境下,直接覆盖文件内容可能出现权限问题,故当前采用的文件写策略是通过,新建临时文件写入内容,覆盖旧文件方式,该逻辑会造成临时文件的生成,详细代码见:

await writeFileAtomic(FileUri.fsPath(new URI(_uri)), buffer);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chaoyue1217
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants