mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-21 07:26:29 -05:00
Adds preliminary support for spinning up and down commands.
This commit is contained in:
parent
6301301025
commit
b24807704e
14 changed files with 640 additions and 47 deletions
|
|
@ -1343,6 +1343,15 @@ void pathslash(char* dst, size_t size)
|
|||
}
|
||||
}
|
||||
|
||||
void pathcut(char* dst)
|
||||
{
|
||||
char* slash = strrchr(dst, '/');
|
||||
if (slash)
|
||||
slash[1] = 0;
|
||||
else
|
||||
dst[0] = 0;
|
||||
}
|
||||
|
||||
int pathcmp(const char* a, const char* b)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue