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

[FEATURE] File system utilities #29

Open
kashifkhan0771 opened this issue Oct 30, 2024 · 0 comments
Open

[FEATURE] File system utilities #29

kashifkhan0771 opened this issue Oct 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kashifkhan0771
Copy link
Owner

Feature Description

The File System Utilities feature should provides a comprehensive set of functions designed to simplify and enhance file and directory operations within Go applications. These utilities should streamline common tasks related to files.
Some that I have on my mind are following:

  1. File size formatter
  2. Directory search for specific file extension
  3. Directory size calculation
  4. File comparison

Any other functions related to files can be discussed in this feature request and than added in pull request.

Use Case

Enhance file/directory operations


Proposed Solution

Create a new package fsutils and all utility functions should be added in that package

Pseudo Code

func FormatFileSize(size int64) string { ... }
func FindFiles(root string, extension string) ([]string, error) { ... }
func GetDirectorySize(path string) (int64, error) { ... }
func AreFilesIdentical(file1, file2 string) (bool, error) { ... }
@kashifkhan0771 kashifkhan0771 added enhancement New feature or request good first issue Good for newcomers and removed good first issue Good for newcomers labels Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant