File and Directory Handling #2

Closed
opened 2024-06-19 15:07:53 +00:00 by jeff · 0 comments
Owner

Note: In re-implementing edlink in golang, some of these functions may not be needed.

General:

  • DelRecord()—Deletes a file or directory.

Directory functions:

  • DiskInit()—Initializes the disk.
  • DiskRead()—Initializes the disk.
  • DirOpen()—Opens a directory.
  • DirRead()—Reads a directory entry.
  • DirLoad()—Loads a directory.
  • DirGetSize()—Gets the size of the directory.
  • DirGetRecs()—Gets directory records.
  • DirMake()—Creates a directory.

File Functions:

  • FileOpen()—Opens a file with specified mode.
  • FileRead() —Reads data from a file.
  • FileRead()—Reads data from a file to memory.
  • FileWrite()—Writes data to a file.
  • FileWrite()—Writes data to a file from memory.
  • FileSetPtr()—Sets file pointer.
  • FileClose()—Closes the file.
  • GetFileInfo()—Gets file information.
  • FileCrc()—Calculates CRC of a file.
_Note: In re-implementing edlink in golang, some of these functions may not be needed._ General: - [x] `DelRecord()`—Deletes a file or directory. Directory functions: - [x] `DiskInit()`—Initializes the disk. - [x] `DiskRead()`—Initializes the disk. - [x] `DirOpen()`—Opens a directory. - [x] `DirRead()`—Reads a directory entry. - [x] `DirLoad()`—Loads a directory. - [x] `DirGetSize()`—Gets the size of the directory. - [x] `DirGetRecs()`—Gets directory records. - [x] `DirMake()`—Creates a directory. File Functions: - [x] `FileOpen()`—Opens a file with specified mode. - [x] `FileRead() `—Reads data from a file. - [x] `FileRead()`—Reads data from a file to memory. - [x] `FileWrite()`—Writes data to a file. - [x] `FileWrite()`—Writes data to a file from memory. - [x] `FileSetPtr()`—Sets file pointer. - [x] `FileClose()`—Closes the file. - [x] `GetFileInfo()`—Gets file information. - [x] `FileCrc()`—Calculates CRC of a file.
jeff self-assigned this 2024-06-19 15:07:53 +00:00
jeff added this to the goedlink project 2024-06-19 15:07:53 +00:00
jeff closed this issue 2024-06-23 21:36:39 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: jeff/goedlink#2
No description provided.