<div dir="ltr"><div><div><div>Hello,<br><br></div>Is there a good way to perform file operations on a slave node's filesystem using the "file" module?  At the moment, Disco uses prim_file module for all such operations which results in some inconvenience and is not documented.  For example, for changing the permissions of a file on an slave, we have to use:<br>

prim_file:write_file_info(Path, #file_info{mode = 8#755})<br></div><div>instead of the same function in the file module.<br><br></div><div>Someone on the irc channel mentioned using the raw option. However, this option does not cover all of the cases (for example there is no equivalent for prim_file:make_dir(Name)).<br>
<br>Is there a better way?<br>
</div><div><br></div>I found this thread (<a href="https://groups.google.com/forum/#!topic/erlang-programming/iRN984TufcA" target="_blank">https://groups.google.com/forum/#!topic/erlang-programming/iRN984TufcA</a>) which is asking the same question six years ago but there was no good answers).<br>

<br></div>Regards<br></div>