mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-25 19:13:28 +00:00
cloud docs: no links to private items, as the workspace docs check requires
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
//! [`Job::Create`] name is one plain file name, not a path at all. Neither is
|
||||
//! an OS path string handed to `std::fs`. Confinement happens in two layers:
|
||||
//!
|
||||
//! 1. [`confine_segment`] (every path segment) and [`confine_name`] (a
|
||||
//! 1. `confine_segment` (every path segment) and `confine_name` (a
|
||||
//! `Create` name, stricter) reject `..`, `.`, an empty segment, an
|
||||
//! absolute form, and anything that is not exactly one
|
||||
//! [`std::path::Component::Normal`]. `confine_name` additionally refuses a
|
||||
@@ -41,8 +41,8 @@
|
||||
//! not itself a path separator on any platform's filesystem, so
|
||||
//! `confine_segment` lets `list`, `read` and `write` keep such a name
|
||||
//! reachable instead of discovering it and then refusing to open it.
|
||||
//! 2. [`open_root`] opens `root` as a [`cap_std::fs::Dir`] capability once per
|
||||
//! job. Every [`list`], [`read`], [`write`] and [`create`] routes its
|
||||
//! 2. `open_root` opens `root` as a [`cap_std::fs::Dir`] capability once per
|
||||
//! job. Every `list`, `read`, `write` and `create` routes its
|
||||
//! already-segment-checked relative path through that one `Dir`, never
|
||||
//! through an absolute OS path built by this crate. `cap_std` resolves one
|
||||
//! component at a time against real, already-open directory handles, so a
|
||||
|
||||
@@ -300,7 +300,7 @@ impl CloudFiles {
|
||||
|
||||
/// The account badge's own strings, for a localized application that
|
||||
/// would rather translate them itself than through
|
||||
/// [`CloudApp::tr`](crate::cloud::CloudApp::tr).
|
||||
/// [`CloudApp::tr`].
|
||||
pub fn account_menu_mut(&mut self) -> &mut crate::account::AccountMenu {
|
||||
&mut self.accounts
|
||||
}
|
||||
@@ -594,7 +594,7 @@ pub fn cancel_save_as<A: CloudApp>(app: &mut A) {
|
||||
|
||||
/// Save As: writes a new document into `folder` under `name`.
|
||||
///
|
||||
/// Acts on [`CloudFiles::save_as_target`] when the conflict modal's "Save as
|
||||
/// Acts on `CloudFiles::save_as_target` when the conflict modal's "Save as
|
||||
/// a copy" set one, so the copy is made from the document that conflicted
|
||||
/// even if another tab is active by the time this runs. Otherwise, the
|
||||
/// active document, same as every other ordinary Save As.
|
||||
|
||||
@@ -56,7 +56,7 @@ pub trait Files {
|
||||
|
||||
/// A byte range of one document.
|
||||
///
|
||||
/// Defaulted to a full [`read`] and a slice, so providers that have no
|
||||
/// Defaulted to a full [`read`](Self::read) and a slice, so providers that have no
|
||||
/// ranged GET still satisfy the trait. A provider with real range support
|
||||
/// overrides this.
|
||||
fn read_range(&self, id: &str, offset: u64, length: u64) -> Result<Vec<u8>> {
|
||||
|
||||
Reference in New Issue
Block a user