Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Sistema de Ficheiros

Esta tradução não está completa. Por favor ajude a traduzir este artigo a partir do Inglês.

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

Na API do Sistema de Ficheiros, um objeto do Sistema de Ficheiros representa um ficheiro do sistema. O objeto é o argumento de um callback bem sucedido do  Sistema de Ficheiros Local(). O objeto do Sistema de Ficheiros tem duas propriedades.

Sobre este documento

This document was last updated on March 2, 2012 and follows the W3C Specifications (Working Draft) drafted on April 19, 2011.
The draft is no more actively maintained, the specification is abandonned for the moment as it didn't get any significant traction.

Conceitos básicos

You request access to a sandboxed file system by calling window.requestFileSystem(). CallingrequestFileSystem()creates new storage for your web app.The argument of the a successful callback is the FileSystem object, which has two properties: the name and root of the file system.

The FileSystem object is your gateway to the entire API and you will use it a lot. So once you have a reference, cache the object in a global variable or class property.

Atributos

Atributo Tipo Descrição
name readonly DOMString Name of the file system. The name must be unique across the list of exposed file systems.
root readonly DirectoryEntry The root directory of the file system.

Compatibilidade do navegador

Funcionalidade Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Suporte básico 13webkit No support No support No support No support
Funcionalidade Android Chrome for Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Suporte básico No support 0.16webkit No support No support No support No support

 

Consultar também

Especificação: File API: Directories and System SpecificationWD

Referência: File System API

Introdução: Basic Concepts About the File System API

Etiquetas do documento e colaboradores

 Colaboradores para esta página: mansil
 Última atualização por: mansil,