mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-25 04:54:07 +00:00
Tinker with FileRoute
This commit is contained in:
parent
5a82879115
commit
64d38a24a0
1 changed files with 5 additions and 2 deletions
|
|
@ -9,9 +9,13 @@ pub struct FileRoute {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FileRoute {
|
impl FileRoute {
|
||||||
|
pub fn from_path(path: &Path, partition: &Partition) -> FileRoute {
|
||||||
|
// TODO: Needed for PartitionWatcher to changes onto FileRoute
|
||||||
|
unimplemented!()
|
||||||
|
}
|
||||||
|
|
||||||
/// Creates a PathBuf out of the `FileRoute` based on the given partition
|
/// Creates a PathBuf out of the `FileRoute` based on the given partition
|
||||||
/// `Path`.
|
/// `Path`.
|
||||||
// TODO: Tests
|
|
||||||
pub fn to_path_buf(&self, partition_path: &Path) -> PathBuf {
|
pub fn to_path_buf(&self, partition_path: &Path) -> PathBuf {
|
||||||
let mut result = partition_path.to_path_buf();
|
let mut result = partition_path.to_path_buf();
|
||||||
|
|
||||||
|
|
@ -24,7 +28,6 @@ impl FileRoute {
|
||||||
|
|
||||||
/// Creates a version of the FileRoute with the given extra pieces appended
|
/// Creates a version of the FileRoute with the given extra pieces appended
|
||||||
/// to the end.
|
/// to the end.
|
||||||
// TODO: Test
|
|
||||||
pub fn extended_with(&self, pieces: &[&str]) -> FileRoute {
|
pub fn extended_with(&self, pieces: &[&str]) -> FileRoute {
|
||||||
let mut result = self.clone();
|
let mut result = self.clone();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue