mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 13:50:16 +00:00
chore(autoconfigure/docs): clarify why we append / to a device root
This commit is contained in:
@@ -31,7 +31,7 @@ pub fn scan(
|
|||||||
.to_string(DisplayOnly(false), AllowShortcuts(false))
|
.to_string(DisplayOnly(false), AllowShortcuts(false))
|
||||||
.context("unable to convert device root to string")?
|
.context("unable to convert device root to string")?
|
||||||
.to_string();
|
.to_string();
|
||||||
// Add a trailing slash to the root to ensure the path is valid.
|
// Add a trailing forward-slash to the root to ensure the device root is completed.
|
||||||
root.push('/');
|
root.push('/');
|
||||||
|
|
||||||
// Generate a unique hash of the root path.
|
// Generate a unique hash of the root path.
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ pub fn scan(
|
|||||||
.to_string(DisplayOnly(false), AllowShortcuts(false))
|
.to_string(DisplayOnly(false), AllowShortcuts(false))
|
||||||
.context("unable to convert device root to string")?
|
.context("unable to convert device root to string")?
|
||||||
.to_string();
|
.to_string();
|
||||||
// Add a trailing slash to the root to ensure the path is valid.
|
// Add a trailing forward-slash to the root to ensure the device root is completed.
|
||||||
root.push('/');
|
root.push('/');
|
||||||
|
|
||||||
// Generate a unique hash of the root path.
|
// Generate a unique hash of the root path.
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ pub fn scan(
|
|||||||
.to_string(DisplayOnly(false), AllowShortcuts(false))
|
.to_string(DisplayOnly(false), AllowShortcuts(false))
|
||||||
.context("unable to convert device root to string")?
|
.context("unable to convert device root to string")?
|
||||||
.to_string();
|
.to_string();
|
||||||
// Add a trailing slash to the root to ensure the path is valid.
|
// Add a trailing forward-slash to the root to ensure the device root is completed.
|
||||||
root.push('/');
|
root.push('/');
|
||||||
|
|
||||||
// Generate a unique hash of the root path.
|
// Generate a unique hash of the root path.
|
||||||
|
|||||||
Reference in New Issue
Block a user