Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add touch() fn to File primitive #4

Open
petehayes102 opened this issue Aug 24, 2016 · 0 comments
Open

Add touch() fn to File primitive #4

petehayes102 opened this issue Aug 24, 2016 · 0 comments

Comments

@petehayes102
Copy link
Contributor

Currently the only way to create a new file is to upload one from the local disk. In some cases it would be useful to be able to create a blank file directly on the remote machine.

The function signature will be:

impl File {
//...
    /// Create a blank file on the managed host.
    fn create(&self, host: &mut Host) -> Result<()>;
//...
}

There are several places that this function will need to be added to:

  1. file/mod.rs -> impl File
  2. file/mod.rs -> trait FileTarget
  3. file/ffi.rs -> pub extern "C" fn file_create(...)
  4. All implementation of FileTarget in target/...
  5. Agent repo -> api/file.rs
  6. Examples repo -> Projects for Rust, C and PHP
  7. Tests repo -> Test suites for Rust, C and PHP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant