Skip to content

File Names With Special Characters Are Not Transferred #69

@monomycelium

Description

@monomycelium

When I try to transfer files with special characters like and (), the files do not get transferred, and I get an error:

Down message: the file session: 8e1cf038-6d92-4838-98bc-9ebfdaad7ca1 / /media/pi/ADATA/Test File — EM Dash.txt finished with errors: /media/pi/ADATA/.0.764959354714342Test File — EM Dash.txt (Invalid argument)
Down cause:
java.io.FileNotFoundException: /media/pi/ADATA/.0.764959354714342Test File — EM Dash.txt (Invalid argument)
	at java.base/java.io.RandomAccessFile.open0(Native Method)
	at java.base/java.io.RandomAccessFile.open(RandomAccessFile.java:345)
	at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:259)
	at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:214)
	at lia.util.net.copy.PosixFSFileChannelProviderFactory$PosixFSWriterFileChannelProvider.getFileChannel(PosixFSFileChannelProviderFactory.java:99)
	at lia.util.net.copy.FileWriterSession.getChannel(FileWriterSession.java:151)
	at lia.util.net.copy.disk.DiskWriterTask.run(DiskWriterTask.java:146)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)

File names with characters from non-English encodings do not get transferred either. I would like to know if this is a bug or if I should arduously rename all the files I want to transfer?

Here is the entire output of the command: error.log.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions