What is the Linux drive naming scheme? Ask Question Asked 8 years, 8 months ago. It's worth noting that in normal use you don't need to use the /dev/sd. names. The equivalent of your C: drive is /. You can mount a separate disk to a folder in your C: and another drive at the same time, and unmounted disks may not have a drive letter at. Jun 05, 2016 Windows 10 Storage Tip How to mount a hard drive as a folder in Windows 10 When you have multiple hard drives connected to your computer, use this guide to ditch drive letters by mounting hard.
-->The drive resource is the top level object representing a user's OneDrive or a document library in SharePoint.
OneDrive users will always have at least one drive available, their default drive.Users without a OneDrive license may not have a default drive available.
JSON representation
Here is a JSON representation of a Drive resource.
The drive resource is derived from baseItem and inherits properties from that resource.
Properties
Property | Type | Description |
---|---|---|
createdBy | identitySet | Identity of the user, device, or application which created the item. Read-only. |
createdDateTime | dateTimeOffset | Date and time of item creation. Read-only. |
description | String | Provide a user-visible description of the drive. Read-write. |
driveType | String | Describes the type of drive represented by this resource. OneDrive personal drives will return personal . OneDrive for Business will return business . SharePoint document libraries will return documentLibrary . Read-only. |
id | String | The unique identifier of the drive. Read-only. |
lastModifiedBy | identitySet | Identity of the user, device, and application which last modified the item. Read-only. |
lastModifiedDateTime | dateTimeOffset | Date and time the item was last modified. Read-only. |
name | string | The name of the item. Read-write. |
owner | identitySet | Optional. The user account that owns the drive. Read-only. |
quota | quota | Optional. Information about the drive's storage space quota. Read-only. |
sharepointIds | sharepointIds | Returns identifiers useful for SharePoint REST compatibility. Read-only. |
system | systemFacet | If present, indicates that this is a system-managed drive. Read-only. |
webUrl | string (url) | URL that displays the resource in the browser. Read-only. |
Relationships
![Dev Folder In C Drive Dev Folder In C Drive](/uploads/1/2/6/2/126215311/563411398.jpg)
Relationship | Type | Description |
---|---|---|
activities | itemActivity collection | The list of recent activities that took place under this drive. |
items | DriveItem collection | All items contained in the drive. Read-only. Nullable. |
root | DriveItem | The root folder of the drive. Read-only. |
special | DriveItem collection | Collection of common folders available in OneDrive. Read-only. Nullable. |
list | List | For drives in SharePoint, the underlying document library list. Read-only. Nullable. |
Methods
Open C Drive Folders
Common task | HTTP method |
---|---|
Get Drive metadata of another Drive | GET /drives/{drive-id} |
Get root folder for user's default Drive | GET /drive/root |
List activities under the Drive | GET /drive/activities |
List children under the Drive | GET /drive/root/children |
List changes for all Items in the Drive | GET /drive/root/delta |
Search for Items in the Drive | GET /drive/root/search |
Access special folder | GET /drive/special/{name} |
In the previous table, the examples use
-->/drive
, but other pathes are valid too.The App Folder is a dedicated, special folder for your app.The App Folder is typically named after your app, and is found in the Apps folder in the user's OneDrive.If you request the
Files.ReadWrite.AppFolder
permission scope and the user authorizes it, your app gets read and write access to this folder.Since it behaves like any other folder in the user's OneDrive, users can add, modify, and remove content from it. Your app doesn't need to maintain logic unique to the user, which allows the user to rename or move it.Getting authorization from the user
To have your own app's folder, you must request either the
onedrive.appfolder
or onedrive.readwrite
permission scope when getting an access token.For more details, see authentication.Creating your app's folder
OneDrive creates your app's folder in the user's
Apps
folder, located in the root of the user's OneDrive, when your app makes the first call to the folder using the special folder namespace.Below are the most common calls your app can make to create the folder for the first time.- Get your app folder's metadata:
GET /drive/special/approot
- List your app folder's children:
GET /drive/special/approot/children
- Create a folder under the approot:
POST /drive/special/approot/children
- Create an upload session:
POST /drive/special/approot:/{filename}:/createUploadSession
- Upload an item's content:
PUT /drive/special/approot:/{fileName}:/content
- Upload an item's content w/ metadata:
POST /drive/special/approot/children
- Upload an item's content from URL:
POST /drive/special/approot/children
Naming your app's folder
When OneDrive creates your app's folder, it uses the Application name set at that point for the calling app id.You may change your app's folder name in the Microsoft Application Registration Portal.If you choose to do so, you may localize your app's folder name by going to the Microsoft Application Registration Portal and editing your app's localization settings.
Working with your app's folder
Dev Folder In C Drive Windows 10
Your app's folder supports all the standard
item
operations.Common task | HTTP method (by path) |
---|---|
Get metadata for an Item | GET /drive/special/approot:/{path} |
List an Item's children | GET /drive/special/approot:/{path}:/children |
Create an Item | PUT /drive/special/approot:/{parent-path}/{name} |
Upload an Item's contents | PUT /drive/special/approot:/{parent-path}/{name}:/content |
Update an Item's contents | PATCH /drive/special/approot:/{path} |
Delete an Item | DELETE /drive/special/approot:/{path} |
Move an Item | PATCH /drive/special/approot:/{path} |
Copy an Item | POST /drive/special/approot:/{path}:/action.copy |
Download an Item's contents | GET /drive/special/approot:/{path}:/content |
Download specific file format | GET /drive/special/approot:/{path}:/content?format={format} |
Search for an Item | GET /drive/special/approot:/{path}:/search |
View changes on an Item | GET /drive/special/approot:/{path}:/delta |
Get thumbnails for an Item | GET /drive/special/approot:/{path}:/thumbnails |