Skip to content

Add append() method to MicropythonFsHex #23

Description

@microbit-carlos

append(filename: string, content: string): void {
if (!filename) {
throw new Error('Invalid filename.');
}
if (!this.exists(filename)) {
throw new Error(`File "${filename}" does not exist.`);
}
// TODO: Implement this.
throw new Error('Append operation not yet implemented.');
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions