filesystem

package
v0.160.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package filesystem provides the Chrome DevTools Protocol commands, types, and events for the FileSystem domain.

Generated by the pdlgen command.

Index

Constants

View Source
const (
	CommandGetDirectory = "FileSystem.getDirectory"
)

Command names.

Variables

GetDirectory [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/FileSystem#method-getDirectory

Functions

This section is empty.

Types

type BucketFileSystemLocator

type BucketFileSystemLocator struct {
	StorageKey     storage.SerializedStorageKey `json:"storageKey"`                    // Storage key
	BucketName     string                       `json:"bucketName,omitempty,omitzero"` // Bucket name. Not passing a bucketName will retrieve the default Bucket. (https://developer.mozilla.org/en-US/docs/Web/API/Storage_API#storage_buckets)
	PathComponents []string                     `json:"pathComponents"`                // Path to the directory using each path component as an array item.
}

BucketFileSystemLocator [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/FileSystem#type-BucketFileSystemLocator

type Directory

type Directory struct {
	Name              string   `json:"name"`
	NestedDirectories []string `json:"nestedDirectories"`
	NestedFiles       []*File  `json:"nestedFiles"` // Files that are directly nested under this directory.
}

Directory [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/FileSystem#type-Directory

type File

type File struct {
	Name         string             `json:"name"`
	LastModified cdp.TimeSinceEpoch `json:"lastModified"` // Timestamp
	Size         float64            `json:"size"`         // Size in bytes
	Type         string             `json:"type"`
}

File [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/FileSystem#type-File

type GetDirectoryParams

type GetDirectoryParams struct {
	BucketFileSystemLocator *BucketFileSystemLocator `json:"bucketFileSystemLocator"`
}

GetDirectoryParams are the parameters of the command FileSystem.getDirectory.

type GetDirectoryResult added in v0.157.3

type GetDirectoryResult struct {
	Directory *Directory `json:"directory,omitempty,omitzero"` // Returns the directory object at the path.
}

GetDirectoryResult is the result of the command FileSystem.getDirectory.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL