patrickjuchli / basic-ftp

FTP client for Node.js, supports FTPS over TLS, passive mode over IPv6, async/await, and Typescript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Immutable files on server

malee1975 opened this issue · comments

Hi,

Is there anyway the library can determine if the file on the server is immutable or not.

For example in Linux I used the chattr +i file-name.ext command to make the file immutable.

regards

Matt

There is no standard way to do this.

You could use the SITE command to access server-specific functionality. Try client.send("SITE chattr +i file-name.ext"). But there is no guarantee that your FTP server supports this.