Introduction
Extension Name: File Manager
Released on: 2024-05-26T08:43:00Z
Latest Version: 1.0
Blocks
File and Directory Operations
IsFileDirectory
Check if a path is a directory.
IsFileHidden:
Determine if a file is hidden.
IsFileRegular:
Check if a path is a regular file.
IsDirectoryEmpty:
Verify if a directory is empty.
FileExists:
Confirm if a file exists.
Initialize:
Initialize the FileManager with a specific directory path.
Navigate:
Navigate through directories.
CreateDirectory:
Create a new directory.
DeleteDirectory:
Delete a File.
DeleteDirectory:
Delete an entire directory.
File Information
GetFileAttribute:
Retrieve specific attributes of a file.
GetFileSize:
Get the size of a file.
GetFilePath:
Get the path of a file.
GetFileOwner:
Find out the owner of a file.
GetFileMimeType:
Determine the MIME type of a file.
GetFileLastModified:
Get the last modified timestamp of a file.
GetFileExtension:
Retrieve the file extension.
GetFileBasicAttributes:
Get basic attributes of a file.
File Permissions
HasPermission:
Check if a specific permission is granted.
GetFilePermissions:
Retrieve the permissions of a file.
SetFilePermissions:
Set permissions for a file.
Searching and Sorting
SearchDirectories:
Search within directories.
SearchFiles:
Search for files using a query.
SortFiles:
Sort files based on specified criteria.
File Manipulation
RenameFile:
Rename a file.
CopyFile:
Copy a file from one location to another.
MoveFile:
Move a file to a different location.
CalculateChecksum:
Calculate the checksum of a file using specified algorithms.
Directory Listings
ListFiles:
List all files in a directory.
ListDirectories:
List all directories.
ListAllFilesRecursive:
List all files recursively within a directory.
How to Use
-
Initialize the FileManager: Use the
Initialize
block with a directory path to set up the FileManager.
Block Setup
-
Check File/Directory Properties: Use blocks like
IsFileDirectory
,IsFileHidden
, orFileExists
to query properties.
Block Setup
- Manage Files and Directories: Create, delete, copy, move, and rename files and directories using the respective blocks.
-
Get Information: Retrieve file details using blocks like
GetFileSize
,GetFileOwner
, andGetFileMimeType
. -
Permissions: Check and set permissions using
HasPermission
,GetFilePermissions
, andSetFilePermissions
Block setup
-
Search and Sort: Find and organize files with
SearchDirectories
,SearchFiles
, andSortFiles
.
Block setup
Example Use Cases
- File Organization: Automatically organize downloaded files based on their type and date.
- Security Applications: Verify file permissions and ensure sensitive files are secure.
- Backup Utilities: Create backups of important files by copying them to different directories.
- File Exploration: Build a file explorer within your app to navigate through directories and manage files.
Download and Support
You can download the FileManager extension by clicking the link
Link
Aia added in the upper link all basic things are covered also have uploaded blocks setups and i will make a complete aia file in a few days
Thanks for your support
I am committed to providing support and updates based on your feedback. Feel free to reach out with any questions, issues, or feature requests.
Letβs make file management easier and more efficient in our Kodular projects!
!
Note!
This is my first extension so if there is any error or issue you have kindly tell me.