Bottom Page

Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 How to transfer a music file, from "uploads" directory into my project
#11
I go to the terminal, cd pong(project of the creator), after some cd I find the music file named "destination-01.mp3". I make a "cat" on this file. After many pages of binaries(illisible) it gives the following (I paste).....................................     sylvain@sylvain-HP-Mini-110-1100:~/pong/resources/music$ 62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c

You see there is no question of any path. May someone help me with the above. Thanks
Quote
#12
Your post are confusing,you are trying to get a .mp3 file from the pong game of @metulburr.
Have you heard of git and know how to get a Repo to your commuter(with git clone)?
A quick demo.
E:\1py_div\div_code
λ git clone https://github.com/metulburr/pong.git
Cloning into 'pong'...
remote: Counting objects: 583, done.
remote: Total 583 (delta 0), reused 0 (delta 0), pack-reused 583
Receiving objects: 100% (583/583), 17.67 MiB | 1007.00 KiB/s, done.
Resolving deltas: 100% (338/338), done.
Checking connectivity... done.
Now i have all files of pong Repo on my computer.
Say i want destination-01.mp3 in my foo project,
i can just move file in file explorer.
If i want to do it with command line cd into folder and copy it:
E:\1py_div\div_code\pong\resources\music (master)
λ copy destination-01.mp3 c:\foo
1 file(s) copied.
Then file is in my project foo folder.
I never cat/open or do anything else with the file,it's binary .mp3 that just work in any media player.
Quote
#13
My project is named "ping". Now a paste......................................................................................................................sylvain@sylvain-HP-Mini-110-1100:~/pong/resources/music$ copy destination-01.mp3 c:\ping
No command 'copy' found, did you mean:
 Command 'mcopy' from package 'mtools' (main)
 Command 'copt' from package 'z88dk-bin' (universe)
 Command 'fcopy' from package 'fai-client' (universe)
 Command 'rcopy' from package 'rdmacm-utils' (universe)
 Command 'bcopy' from package 'bareos-tools' (universe)
 Command 'bcopy' from package 'bacula-sd-sqlite3' (universe)
 Command 'bcopy' from package 'bacula-sd-mysql' (universe)
 Command 'bcopy' from package 'bacula-sd-pgsql' (universe)
 Command 'hcopy' from package 'hfsutils' (main)
copy: command not found
sylvain@sylvain-HP-Mini-110-1100:~/pong/resources/music$

I tried also :sylvain@sylvain-HP-Mini-110-1100:~/pong/resources/music$ copy destination-01.mp3 c:\ping\resources\music

without success.
Quote
#14
I don't know why, the music file dropped on my directory "Bureau"
Quote
#15
You are using Linux the is cp and not copy.
The same on Linux.
mint@mint ~ $ git clone https://github.com/metulburr/pong.git
Cloning into 'pong'...
remote: Counting objects: 583, done.
remote: Total 583 (delta 0), reused 0 (delta 0), pack-reused 583
Receiving objects: 100% (583/583), 17.67 MiB | 1.71 MiB/s, done.
Resolving deltas: 100% (338/338), done.
Checking connectivity... done.
At this point i have have a folder pong with all files,
then can just use a  file manger and move file to where i want.

If want to us command line.
# cd into folder
mint@mint ~/pong/resources $ cd /home/mint/pong/resources/music
mint@mint ~/pong/resources/music $ ls
barn-beat-01.mp3  cautious-path-01.mp3  destination-01.mp3  heart-of-the-sea-01.mp3  iron-man-01.mp3  jungle-run-01.mp3  midnight-ride-01a.mp3

# Copy to /foo folder
mint@mint ~/pong/resources/music $ cp destination-01.mp3 /home/mint/foo
mint@mint ~/pong/resources/music $ cd /home/mint/foo

# ls on /foo folder
mint@mint ~/foo $ ls
destination-01.mp3  hello.py
Quote
#16
Phew ! Problem solved. Bravo Snipsat. Long life to Terminal . Even if it is heavy .........sylvain@sylvain-HP-Mini-110-1100:~/pong/resources/music$ cp destination-01.mp3 /home/sylvain/PycharmProjects/ping/resources/music
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Splitting the audio file into smaller packets before transfer using UDP protocol in p MuhammadAli152 0 95 May-15-2020, 03:01 PM
Last Post: MuhammadAli152
  Getting FileNotFoundError: [Errno 2] ,if tries to acees same file from sub-directory pmpinaki 2 272 May-04-2020, 03:39 PM
Last Post: pmpinaki
  FileNotFoundError: [Errno 2] No such file or directory saqib1066 23 2,178 Mar-16-2020, 01:25 PM
Last Post: saqib1066
  How to stop Xmodem after bin file transfer was finished shaya2103 0 244 Nov-27-2019, 04:33 PM
Last Post: shaya2103
  file directory linards 3 429 Nov-07-2019, 06:18 AM
Last Post: linards
  How do I read the HTML files in a directory and write the content into a CSV file? glittergirl 1 378 Sep-23-2019, 11:01 AM
Last Post: Larz60+
  pygame.error: /etc/timidity.cfg: No such file or directory lsepolis123 3 821 Aug-23-2019, 07:53 AM
Last Post: lsepolis123
  OS module and file/directory recovery hikerguy62 1 350 Aug-02-2019, 06:42 AM
Last Post: Gribouillis
  How to build exe/deployable file from Python Project ShikhaJain 1 377 Jul-04-2019, 05:37 PM
Last Post: snippsat
  Find a given file recursively inside a directory alinaveed786 1 566 Jul-01-2019, 01:53 PM
Last Post: ichabod801

Forum Jump:


Users browsing this thread: 1 Guest(s)