Node.JS fs.rename doesn't work

前端 未结 2 1490
长发绾君心
长发绾君心 2021-01-05 14:40

Renaming a file on Debian Wheezy does not work using fs.rename or fs.renameSync.

This only happens in files moved from /tmp/ to another location.

The reporte

2条回答
  •  情书的邮戳
    2021-01-05 15:13

    Debian Wheezy uses tmpfs for the /tmp folder by default.

    This can be turned off by modifing /etc/default/rcS.

    RAMTMP=yes
    

    has to be set to

    RAMTMP=no
    

提交回复
热议问题