OneFolder icon indicating copy to clipboard operation
OneFolder copied to clipboard

Can't see network drives when adding a new location while running the app as administrator

Open FeralFlora opened this issue 9 months ago • 6 comments

Describe the bug When I run OneFolder as administrator, no network drives are listed in the folder picker.

To Reproduce Steps to reproduce the behavior:

  1. Right-click the OneFolder shortcut
  2. Click "Run as administrator"
  3. Click "Add location"
  4. No network drives are listed.

If I skip step 1 and 2 and open OneFolder by double-clicking (not as administrator), the network drives are listed in step 4, and I can select them.

Expected behavior I would expect to see the available network drives when trying to add a location, after opening the app as administrator.

Screenshots I can't share screenshots.

OneFolder version

v. 1.0.14

Desktop OS

Windows 10

Additional context I was trying to open Onefolder as administrator in an attempt to solve the error I keep getting when adding locations on a network drive, namely:

Error fired in watcher M:/folder/ Error: EISDIR: illegal operation on a directory, watch [...]

Location watch error: Error: EISDIR: illegal operation on a directory, watch [...]

But that's probably for another issue.

FeralFlora avatar Feb 26 '25 15:02 FeralFlora

Hello, so running as admin doesn't change anything, is that right?

Antoine-lb avatar Feb 27 '25 12:02 Antoine-lb

Hello, so running as admin doesn't change anything, is that right?

No, not right. Running as admin makes network drives not appear in the list of drives. When running as admin, I only see local drives like C: and D: listed. When running regularly (not admin), I see all drives (local drives and network drives as well), such as O:, J: etc..

FeralFlora avatar Feb 27 '25 12:02 FeralFlora

I'm not on Windows, and I know very little about it, so correct me if my questions are dumb. But why do you want to run as admin?

Antoine-lb avatar Feb 27 '25 12:02 Antoine-lb

But why do you want to run as admin?

Since I had issues with "illegal operation on a directory" I thought running as admin might help, in case there was some permission issue when accessing network drives.

When running without admin I can see and pick the network drives, but get these errors in the console and the initializing the location fails:

Image

Here's the errors I'm getting (from "additional context" above):

Error fired in watcher M:/folder/ Error: EISDIR: illegal operation on a directory, watch [...] Location watch error: Error: EISDIR: illegal operation on a directory, watch [...]

Image

The directory structure is visible on the left, but no images are listed in the folders.

FeralFlora avatar Feb 27 '25 12:02 FeralFlora

Do you need me to provide additional details?

FeralFlora avatar Mar 24 '25 10:03 FeralFlora

That is the intended behavior of Windows and not a bug, you don't see the network drives as Administrator because you didn't mount them as Administrator. network drives are only visible to the exact user who mounted it.

manatails avatar Jun 23 '25 02:06 manatails