mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
c82f0335f0
API CHANGE Removed File->resetFilename(), use File->updateFilesystem() to update the filesystem, and File->getRelativePath() to just update the "Filename" property without any filesystem changes (emulating the old $renamePhysicalFile method argument in resetFilename()) API CHANGE Removed File->autosetFilename(), please set the "Filename" property via File->getRelativePath() MINOR Added unit tests to FileTest and FolderTest (some of them copied from FileTest, to test Folder behaviour separately) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@107273 467b73ca-7a2a-4603-9d3b-597d59a354a9
30 lines
768 B
YAML
30 lines
768 B
YAML
Folder:
|
|
subfolder:
|
|
Name: FileTest-subfolder
|
|
folder1:
|
|
Name: FileTest-folder1
|
|
folder2:
|
|
Name: FileTest-folder2
|
|
folder1-subfolder1:
|
|
Name: FileTest-folder1-subfolder1
|
|
ParentID: =>Folder.folder1
|
|
File:
|
|
asdf:
|
|
Filename: assets/FileTest.txt
|
|
gif:
|
|
Filename: assets/FileTest.gif
|
|
pdf:
|
|
Filename: assets/FileTest.pdf
|
|
setfromname:
|
|
Name: FileTest.png
|
|
ParentID: 0
|
|
subfolderfile:
|
|
Filename: assets/FileTest-subfolder/FileTestSubfolder.txt
|
|
ParentID: =>Folder.subfolder
|
|
subfolderfile-setfromname:
|
|
Name: FileTestSubfolder2.txt
|
|
ParentID: =>Folder.subfolder
|
|
file1-folder1:
|
|
Filename: assets/FileTest-folder1/File1.txt
|
|
Name: File1.txt
|
|
ParentID: =>Folder.folder1 |