google-drive-0.4.1: Google Drive API access

Safe HaskellNone
LanguageHaskell2010

Network.Google.Drive.File

Contents

Description

Methods for working with File resources on Google Drive.

https://developers.google.com/drive/v2/reference/files

This module is mostly concerned with creating and updating metadata. See Network.Google.Drive.Upload for uploading content.

Synopsis

File Resource

data File Source

An existing file

Constructors

File 

Instances

Building Files

Actions

getFile :: FileId -> Api (Maybe File) Source

Get a File data by FileId

"root" can be used to get information on the Drive itself

If the API returns 404, this returns Nothing

createFile :: FileData -> Api File Source

Create a File from FileData

updateFile :: FileId -> FileData -> Api File Source

Update a File

deleteFile :: File -> Api () Source

Delete a File

downloadFile :: File -> DownloadSink a -> Api (Maybe a) Source

Download a File

Returns Nothing if the file is not downloadable

Utilities

isFolder :: File -> Bool Source

Check if a File is a folder by inspecting its mime-type

isDownloadable :: File -> Bool Source

Check if a File has content stored in drive

localPath :: File -> FilePath Source

What to name this file if downloaded

Currently just the fileTitle