403Webshell
Server IP : 173.236.223.38  /  Your IP : 216.73.216.33
Web Server : Apache
System : Linux vps62975 6.8.0-83-generic #83~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Sep 9 18:19:47 UTC 2 x86_64
User : invmicvps ( 6727287)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/lftp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/lftp/xdg-move
#!/bin/bash
#
# This script moves ~/.lftp (or $LFTP_HOME) files to XDG directories.
# ~/.lftp should be removed after execution of this script.
#

src=${LFTP_HOME:-$HOME/.lftp}
if ! [ -d "$src" ]; then
   echo "Nothing to move (no $src directory found)." >&2
   exit 0
fi

function move() {
   test -a "$src/$1" || return
   test -d "$2" || mkdir -p "$2" || exit 1
   mv "$src/$1" "$2/"
}

function move_data() {
   move "$1" "${XDG_DATA_HOME:-$HOME/.local/share}/lftp"
}
function move_config() {
   move "$1" "${XDG_CONFIG_HOME:-$HOME/.config}/lftp"
}
function move_cache() {
   move "$1" "${XDG_CACHE_HOME:-$HOME/.cache}/lftp"
}

move_data bg
move_data bookmarks
move_data cwd_history
move_cache DHT
move_data log
move_config rc
move_data rl_history
move_data transfer_log

rmdir "$src"

Youez - 2016 - github.com/yon3zu
LinuXploit