Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2708550
globals.rs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
555 B
Referenced Files
None
Subscribers
None
globals.rs
View Options
use
crate
::
helpers
;
use
global_placeholders
::
init
;
use
macros_rs
::
crashln
;
pub
fn
init
()
{
match
home
::
home_dir
()
{
Some
(
path
)
=>
{
let
base
=
format!
(
"{}/.pmc/"
,
path
.
display
());
let
logs
=
format!
(
"{}/.pmc/logs/"
,
path
.
display
());
let
dump
=
format!
(
"{}/.pmc/dump.toml"
,
path
.
display
());
init
!
(
"pmc.base"
,
base
);
init
!
(
"pmc.logs"
,
logs
);
init
!
(
"pmc.dump"
,
dump
);
}
None
=>
crashln
!
(
"{} Impossible to get your home directory"
,
*
helpers
::
FAIL
),
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 1, 11:26 PM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
494647
Default Alt Text
globals.rs (555 B)
Attached To
Mode
rPMC Process Management Controller
Attached
Detach File
Event Timeline
Log In to Comment