Skip to content

Moving onedrive solution inline #1480

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions episodes/02-filedir.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,42 @@ Note that if a directory named `Desktop` does not exist in your current working
this command will return an error. Typically, a `Desktop` directory exists in your
home directory, which we assume is the current working directory of your bash shell.

:::::::::::::: callout

### OneDrive Variations

If a Windows machine is backed up with OneDrive, your Desktop may
have been moved within OneDrive and you will get an error when you try `ls -F Desktop`.

To check if this is true for you, run the command `ls` and look through the output for a folder that has "OneDrive" in the name and note that folder name. It will likely include the name of your organization in it. It may be something like `OneDrive - University of Example`.

If you don't see a "OneDrive" folder, you may not be in your home folder or there may be another issue going on. To check you are in your home folder, type `pwd` and it should show something like `C:/Users/Username` or `/c/Users/Username`.

If you do see the "OneDrive" folder, going forward whenever the lesson or instructor uses the `Desktop` folder, you will need to include the OneDrive folder as well. For example if the instructor types...

``` bash
ls -F Desktop
```

You will need to type:

```bash
ls -F "OneDrive - University of Example/Desktop"
```
Note: The quotation marks are needed for this folder because the Unix shell interprets spaces to be meaningful separators between files/commands/options but this folder has spaces in the name.

::: instructor

One way to spot if the computer is using this kind of configuration with OneDrive is to look at files,
folders or links on the desktop. Usually the icon contains a shortcut/arrow symbol if it
is a link, or just the plain icon if the file is just saved in the `Desktop` folder.
Files synced with OneDrive contain an additional symbol indicating the sync status
(typically blue arrows for 'sync pending' or a green tick for 'synced').

::::::::::::::

::::::::::::::::::::::

Your output should be a list of all the files and sub-directories in your
Desktop directory, including the `shell-lesson-data` directory you downloaded at
the [setup for this lesson](../learners/setup.md). (On most systems, the
Expand Down
17 changes: 0 additions & 17 deletions instructors/instructor-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,23 +221,6 @@ as long as learners using Windows do not run into roadblocks such as:
so that they can find it easily
and watch it evolve.

- If a Windows machine is backed up with enterprise OneDrive, their GUI desktop may
be rendered from a folder within OneDrive, which will not match the contents of `~/Desktop`.
The OneDrive desktop should be accessible using one of the following commands
(if the name of the enterprise isn't clear, look through the output of `ls` to find
the right folder):

```bash
$ cd "~/OneDrive - Name Of Enterprise/Desktop"
$ cd "C:/Users/Username/OneDrive - Name Of Enterprise/Desktop"
```

One way to spot if the computer is using this kind of configuration is to look at files,
folders or links on the desktop. Usually the icon contains a shortcut/arrow symbol if it
is a link, or just the plain icon if the file is just saved in the `Desktop` folder.
Files synced with OneDrive contain an additional symbol indicating the sync status
(typically blue arrows for 'sync pending' or a green tick for 'synced').

- Stay within POSIX-compliant commands, as all the teaching materials do.
Your particular shell may have extensions beyond POSIX that are not available
on other machines, especially the default macOS bash and Windows bash emulators.
Expand Down
Loading