Closed Bug 767587 Opened 12 years ago Closed 11 years ago

GCLI should have a type for files

Categories

(DevTools Graveyard :: Graphic Commandline and Toolbar, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: jwalker, Assigned: jwalker)

References

Details

Attachments

(1 file, 1 obsolete file)

Something like this:

type: 'file'

type {
  name: 'file',
  exists: ...,   // One of [yes|no|optional], default=optional
  type: ...      // One of [file|dir|any], default=any
}

Things to consider:
* This should be able to work asynchronously (get IO off main thread)
* UI should be able to offer a file selection dialog
  (check what options are available there)
* What do we do about symlinks, devices, etc
* What do we do about file permissions, readability, etc
New component triage. Filter on "Lobster Thermidor aux crevettes with a Mornay sauce"
Component: Developer Tools → Developer Tools: Graphic Commandline and Toolbar
Attached patch v1 (obsolete) — Splinter Review
There's a lot here, so you probably want this broken out: https://github.com/joewalker/gcli/pull/14
Assignee: nobody → jwalker
Status: NEW → ASSIGNED
Attachment #773955 - Flags: review?(mratcliffe)
Comment on attachment 773955 [details] [diff] [review]
v1

Review of attachment 773955 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good to me. The l10n comments should probably be fixed though.

::: browser/locales/en-US/chrome/browser/devtools/gcli.properties
@@ +58,5 @@
> +fileErrExists='%1$S' already exists
> +
> +# LOCALIZATION NOTE (fileErrIsNotFile): Error message given when a file
> +# argument points to a non directory, when a directory is needed (e.g. for use
> +# with 'cd') %1$S is a filename

Maybe:
Error message given when a file argument points to a non file (e.g. a directory) %1$S is a filename

@@ +63,5 @@
> +fileErrIsNotFile='%1$S' is not a file
> +
> +# LOCALIZATION NOTE (fileErrIsNotDirectory): Error message given when a file
> +# argument points to a non-file, when a directory is needed (e.g. for use with
> +# 'cd') %1$S is a filename

Maybe:
Error message given when a file argument points to a non-directory, when a directory is needed (e.g. for use with 'cd') %1$S is a directory name
Attachment #773955 - Flags: review?(mratcliffe) → review+
Attached patch v2Splinter Review
With review comment fixes
Attachment #773955 - Attachment is obsolete: true
Attachment #778824 - Flags: review+
Whiteboard: [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/0ebbdfbb31eb
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Depends on: 896256
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: