Questions tagged [unmount]

92 questions
2
votes
2 answers

Can I programmatically find out if a drive is in use?

Is there any way of programmatically finding out if a mapped drive is currently in use? If I try to unmount the drive with net use, and the drive is being used, it will tell me that the drive is in use and prompt me to take further action. I'd like…
Geo
  • 93,257
  • 117
  • 344
  • 520
1
vote
2 answers

Unmount a network volume?

How do I unmount a network volume? NSWorkspace thinks they're neither removable nor unmountable. unmountAndEjectDeviceAtPath: @"/Volumes/the network volume in question" causes nothing whatsoever to happen. There's probably some easy way to do this,…
user512530
  • 15
  • 1
  • 4
1
vote
0 answers

How to unmount component with updated context value?

So I have a parent component that would be the dashboard that displays conditionally a child component that subscribes to a websocket service. When the user completes a form inside of the child component the data is set to the ws service and I get a…
1
vote
2 answers

How I could to unmount active partition?

I try to use function DeleteVolumeMountPoint(L"C:\\"), but I have not access, and it's right. But I need to delete active partition, and I'm search way to do it. Please, could you give me example to delete this partition (unmount it). Operation…
Viktorianec
  • 361
  • 6
  • 22
1
vote
0 answers

The beforeunload event was not triggered when not on the site's page

I have an event that needs to indicate if the user is_online or not. I'm using the beforeunload event, which triggering when the page is closed, and when it trigger I put the is_online property to false Its works good when I close the page directly.…
1
vote
4 answers

android mount unmount sd card

I am working on an application that scans the sd card. At this time, I am using the emulator of eclipse to test my android application. I have created a virtual sd-card for testing purposes on eclipse. I want to know if there is any way of…
Farhan
  • 3,206
  • 14
  • 49
  • 62
1
vote
0 answers

Can't perform a React state update on an unmounted component when use react-cool-inview

I'm using react-cool-inview to handle lazy load ssr in next js but when i redirect router link to next page, it was displayed "index.js:1 Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a…
1
vote
0 answers

How to check whether a mounted volume is currently in use, using Swift?

I am trying to unmount a mounted volume in case it meets certain conditions and for that I am using the following code. FileManager.default.unmountVolume(at: URL(fileURLWithPath: convictedFile), options:…
SaudiSheep
  • 35
  • 6
1
vote
1 answer

odd behavior with framer motion animate on presence

I'm working ona project management application , and I'm developing this feature where the project header can go into editing state where user can edit project title , this header has two child components HeaderContent and EditProjectForm : …
سعيد
  • 1,547
  • 1
  • 14
  • 32
1
vote
1 answer

Can't perform a React state update on an unmounted component useEffect error

I have this code where I am fetching data and passing it to a component. This child component then renders the data I have made it so that when the user pulls down from the top, the component will refresh but whenever I refresh for the first time…
Junaid Razaq
  • 241
  • 5
  • 14
1
vote
1 answer

How dispatch only once when mounting a page?

Good afternoon, dear friends. I now have dispatch executed on every action. I only need dispatch once when mounting the page and delete it when unmounting the page. Tell me how to do this. const myRef = createRef(); const…
Madiever
  • 25
  • 5
1
vote
1 answer

React parent is unmounted for child?

I have a React Parent and Child component. The Child has to be able to update the state of the Parent component. However, I have the issue that my Parent is unmounted when the Child wants to update the Parent, and I'm not sure why or how to fix…
Raflesia
  • 55
  • 1
  • 9
1
vote
0 answers

Apache2 php shell_exec returns different status than normal user

I am trying to monitor the attached USB-Drives of my Raspberry Pi and unmount them on request. I am using apache2 webserver and html/javascript and php. Basic description. When I press the "Refresh button", php checks which devices are mounted at…
JustMe
  • 366
  • 1
  • 4
  • 14
1
vote
1 answer

How to close the file handler when using Files.newDirectoryStream() in java 8

We have a linux app where we are not able to unmount a USB drive because of the below call. Is there a file resource I need to properly close the stream? Files.newDirectoryStream( Paths.get(importDir), path ->…
simgineer
  • 1,754
  • 2
  • 22
  • 49
1
vote
2 answers

How do I unload components?

I have project component that I'm duplicating according to a project list. Once the page is rendered and all Project components are displayed I want to enable a search functionality. When I perform the search and I filter the project list, the old…
zbeedatm
  • 601
  • 1
  • 15
  • 39