# File Management
## Google Drive
- Loads Multiple Things
- About : Root Folder, Total Size, Used Size....
- Apps Information : Google Docs, Sheets...
- Settings : Workspace Item Limits, Density, UI Info...
- People : Owners Information
- Operator Params : Enable Emojis, Chat Attachments...
- Internal (comes as batches/pages) `https://clients6.google.com/batch/drive/v2internal?%2`
- Information Of Files
- UserPermissions Write/Read...
- Sharing User, Owner
- All File Related Information
- Others (Not Sure How The Work)
- JS Files
- Log
- Channels
## Gitlab
- Uses graphql
- Has Commint information
- General structure url/-/blob/branchname/directory
- Sinlge File Info
```json=
{
"mode": "100644",
"webPath": "/evatix-go/ethernetinf/-/blob/develop/assets/withMultipleAdapter.yaml",
"lfsOid": null,
"__typename": "Blob",
"id": "gid://gitlab/Gitlab::Graphql::Representation::TreeEntry/a84c9d0fc5bf2da123cba04da23966e36aae96a1",
"sha": "a84c9d0fc5bf2da123cba04da23966e36aae96a1",
"name": "withMultipleAdapter.yaml",
"flatPath": "assets/withMultipleAdapter.yaml",
"type": "blob"
}
```
## Dropbox
- ApiDoc `https://www.dropbox.com/developers/documentation/http/documentation#file_requests-count`
## API Endpoints
- Top Level Domain
- hosting-company.com/api/v1/
- api.hosting-company.com/v1/
- Assuming the root folder is users home directory `/home/a` if the user is `a`
### File Manager
- Views [will be api.cimux.com/v1/views]
- /list or /get
- /list/exclude/:folder-id
- /list/shortcuts
- /get/:id [could have id or by file path]
- /search [regex/name....]
- /filter [date,filetypes...]
- /expand/:folder-id [expand a folder]
- /history
- /history/:file-id
- /custom/command/:command
- /custom/get/allowed-commands
- /disk
- /count [number of files/folders]
- /free-space
- /files-count
- /folder-count
- /tree
- Basic File Actions [will be api.cimux.com/v1/file-actions]
- /upload
- /:id
- /multiple
- /create
- /folder/:name
- /file/:name
- /delete
- /:id
- /batch
- /batch/:folder-id/:file-types
- /rename
- /:id
- /batch
- /copy
- /:id
- /batch
- /batch/:folder-id/exclude/:file-types
- /reference/:file-id [symbolic-link/shortcut]
- /duplicate
- /list/:file-name
- /remove/:file-name
- /move
- /:id
- /batch
- /batch/:folder-id/exclude/:file-types
- /reference/:file-id [symbolic-link/shortcut]
- /share
- /generate-link/:file-id
- /share-with/:email
- /list
- /unshare/:file-id
- /permission
- /download
- /:file-id
- /:folder-id
- /zip
- Advanced File Actions [will be api.cimux.com/v1/advanced-file-actions]
- /compress
- /:folder-id
- /:folder-id/exclude/:files
- /:files
- /decompress
- /list
- /:folder-id
- /:file-id
- /symlink
- /create
- /remove
- /markdown
- /create
- /edit/:markdown-id
- /delete/:markdown-id
- /notepad
- /create
- /edit/:note-id
- /delete/:note-id
- Administrative Actions [will be api.cimux.com/v1/administrative-actions]
- /permissions
- /chmod/:file-id
- /chmod/:folder-id
- /chmod/recursive/:folder-id
- /chown...
- /terminal
- /list [allowed commands]
- /execute
- /disk-manager
- /merge/:drive-id
- /format/:drive-id
- /mount/:drive-id
- /unmount/:drive-id
- /snapshot
- /Backup/:folder-id
- /Backup/Single/:file-id
- /Restore/:key
- /Restore/Single/:key
- /Restore/:key/specific/:file-id
- Startup Manager [will be api.cimux.com/v1/startup-manager]
- /list/all-apps
- /list/startup-enabled-apps
- /enable/:appname
- /disable/:appname
- Process Manager [will be api.cimux.com/v1/process-manager]
- /list
- /get/:id
- /kill/:id
- /restart/:service
- /reload/:service
- .....
- /list/ports
- /get/port/:pid
- .....
<!-- - /osusergroup [Missing From XMind]
- /cronjobs [Missing From XMind]
- /ethernet [Missing From XMind] -->