JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 27.08.2021, 09:03
mav mav is offline
Junior Loader
 
Join Date: Mar 2021
Posts: 14
Default [Event Scripter] Free Disk Space

Hi,
is there any way to get free diskspace for a specified drive / mountpoint in Event Scripter?

Code:
var volume = getPath('d:\\');
alert(volume.getSize());
-- Returns 4096.0

It would be a nice feature.

Thanks,
Mav.
Reply With Quote
  #2  
Old 27.08.2021, 10:33
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,371
Default

Quote:
Originally Posted by mav View Post
is there any way to get free diskspace for a specified drive / mountpoint in Event Scripter?
You can call myjd api "getStorageInfos" method in eventscripter:
Code:
https://my.jdownloader.org/developers/#tag_306
Reply With Quote
  #3  
Old 27.08.2021, 13:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,936
Default

I will add new methods with next core update
With next core update, there will be getFreeDiskSpace and getReservedDiskSpace methods
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 27.08.2021 at 15:35.
Reply With Quote
  #4  
Old 27.08.2021, 20:10
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,936
Default

Update will be available in 5 mins
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 01:55.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.