feld on Nostr: like how the fuck does Elixir not have a File.mv command? File.rename is the ...
like how the fuck does Elixir not have a File.mv command? File.rename is the equivalent but it doesn't work across filesystem boundaries, so... it must be just hardlinking and deleting the old link? I need to go dig into the source and see wtf it's actually doing
I might have to write a wrapper function and submit it which captures the {:error, :exdev} and changes to a copy/delete instead
Published at
2024-11-08 14:48:43Event JSON
{
"id": "6a94d7777e380db9579275c7557f6aebbce8c18df925cd499dbaa3e5d2962469",
"pubkey": "c517f9a012aa4a98fec69f150764a70e77e3c21a326277fdb788fe3dd0b410f9",
"created_at": 1731077323,
"kind": 1,
"tags": [
[
"zap",
"c517f9a012aa4a98fec69f150764a70e77e3c21a326277fdb788fe3dd0b410f9",
"wss://relay.mostr.pub",
"0.915"
],
[
"zap",
"6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9",
"wss://relay.mostr.pub",
"0.085"
],
[
"proxy",
"https://friedcheese.us/objects/bc3f2d2e-4f4f-4beb-a800-c957d0a989bf",
"activitypub"
]
],
"content": "like how the fuck does Elixir not have a File.mv command? File.rename is the equivalent but it doesn't work across filesystem boundaries, so... it must be just hardlinking and deleting the old link? I need to go dig into the source and see wtf it's actually doing\n\nI might have to write a wrapper function and submit it which captures the {:error, :exdev} and changes to a copy/delete instead",
"sig": "72cad4661f004aab114a8a814686dafa6b882ce284b83ab21d142c0a0263e8dc926a2fece07257c449855d21d550e47b94dd0bd2d8968c704198a2f07b05f21b"
}