Skip to content

Commit

Permalink
Code & Features Update
Browse files Browse the repository at this point in the history
  • Loading branch information
nathaneltitane committed Jan 1, 2024
1 parent cec4c72 commit 2fa54e7
Show file tree
Hide file tree
Showing 2 changed files with 2,880 additions and 14 deletions.
48 changes: 34 additions & 14 deletions frobulator
Original file line number Diff line number Diff line change
Expand Up @@ -2053,7 +2053,9 @@ frobulator.directory () {

if [ ! -d "${path}"/"${directory}" ]
then
mkdir -p "${path}"/"${directory}"
mkdir \
--parents \
"${path}"/"${directory}"
fi

# set ownership
Expand Down Expand Up @@ -2119,7 +2121,9 @@ frobulator.write () {

if [ ! -d "${path}" ]
then
mkdir -p "${path}"
mkdir \
--parents \
"${path}"
fi

for file in ${list[@]}
Expand Down Expand Up @@ -2198,7 +2202,9 @@ frobulator.flag () {

if [ ! -d "${path}" ]
then
mkdir -p "${path}"
mkdir \
--parents \
"${path}"
fi

for file in ${list[@]}
Expand Down Expand Up @@ -2261,7 +2267,9 @@ frobulator.file () {

if [ ! -d "${path}" ]
then
mkdir -p "${path}"
mkdir \
--parents \
"${path}"
fi

for file in ${list[@]}
Expand Down Expand Up @@ -2451,7 +2459,9 @@ frobulator.copy () {

if [ ! -d "${target}" ]
then
mkdir -p "${target}"
mkdir \
--parents \
"${target}"
fi

for file in ${list[@]}
Expand Down Expand Up @@ -2494,7 +2504,9 @@ frobulator.move () {

if [ ! -d "${target}" ]
then
mkdir -p "${target}"
mkdir \
--parents \
"${target}"
fi

for file in ${list[@]}
Expand Down Expand Up @@ -2539,7 +2551,9 @@ frobulator.link () {

if [ ! -d "${target}" ]
then
mkdir -p "${target}"
mkdir \
--parents \
"${target}"
fi

for file in ${list[@]}
Expand Down Expand Up @@ -2689,7 +2703,9 @@ frobulator.download () {

if [ ! -d "${path}" ]
then
mkdir -p "${path}"
mkdir \
--parents \
"${path}"
fi

for file in ${list[@]}
Expand Down Expand Up @@ -2744,10 +2760,10 @@ frobulator.put () {

type="${1}"

curl \
-X PUT "${destination}/${file}" \
-H "Content-Type: ${type}" \
-d "${file}" &
curl \
--request PUT "${destination}/${file}" \
--header "Content-Type: ${type}" \
--data "${file}" &

frobulator.progress "upload" "[ '${file}' ]"
}
Expand Down Expand Up @@ -2789,7 +2805,9 @@ frobulator.log () {
else
if [ ! -d "${HOME}"/.local/var/log ]
then
mkdir -p "${HOME}"/.local/var/log
mkdir \
--parents \
"${HOME}"/.local/var/log
fi

log_directory="${HOME}"/.local/var/log
Expand Down Expand Up @@ -3796,7 +3814,9 @@ frobulator.extract () {

if [ ! -d "${directory}" ]
then
mkdir -p "${directory}"
mkdir \
--parents \
"${directory}"
fi

case "${extension}"
Expand Down
Loading

0 comments on commit 2fa54e7

Please sign in to comment.