# import-file-from-google-drive

## Description

<mark style="color:purple;">`import-file-from-google-drive`</mark> *adaptor imports a file from Google Drive*.

This adaptor imports a file as-is from Google Drive, without processing it or extracting data from it.\
The file should be shared to with <mark style="color:blue;"><data-flo@data-flo.iam.gserviceaccount.com></mark> and given edit permission.

## Inputs

**`url`**\
Type: `text`\
Required: Yes\
The URL of the file to be imported.

## Outputs

**`file`**\
Type: `file`\
The imported file.

## Examples

### Example 1: Default behaviour.

#### Inputs:

`url` : <https://drive.google.com/file/d/1234/view?usp=sharing>

#### Outputs:

`file`: file.txt

-> Imported the file `file.txt` from Google Drive

## Use Cases

* Import a file of any type from Google Drive, to make that file available to other adaptors for processing (e.g.,[`create-graph-from-dot`](https://cgps.gitbook.io/data-flo/reference-guide/create-graph-from-dot),[`import-from-csv-file`](https://cgps.gitbook.io/data-flo/reference-guide/import-from-csv-file), feeding the tree argument in [`export-to-microreact-project`](https://cgps.gitbook.io/data-flo/reference-guide/export-to-microreact-project), etc.)
