Module file

Module file 

Source
Expand description

File operation commands

This module provides file-related operations:

  • init_repo - Initialize repository
  • add_file - Add file to IPFRS
  • get_file - Retrieve file from IPFRS
  • cat_file - Output file contents to stdout
  • ls_directory - List directory contents

Structs§

DirectoryEntry
Directory entry for ls command

Functions§

add_file
Add file to IPFRS
cat_file
Output file contents to stdout
extract_directory_entries
Extract directory entries from IPLD structure
get_file
Get file from IPFRS and save to disk
init_repo
Initialize IPFRS repository
ls_directory
List directory contents