How to enable Jupyterlab to see, read and write to files on local Win10 PC

The following Python code runs in an Anaconda Jupyter Notebook running on my Windows 10 PC, i.e., the notebook’s python finds my local drive ‘O’', which is a USB physical external drive, and says that the O drive exists.
But when I tried to run the same code in ‘…’, the code did not see the O drive and said it does not exist.
If this was explained in Working with Files — JupyterLab 4.0.1 documentation, I apologize for not understanding it.

import os, sys
if os.path.exists('O:\\'):
    print('O drive exists.')
    print('Cannot find the O Drive.')

Any help would be much appreciated.