Merge branch '21128-toolbar-context-menu'
[arvados-workbench2.git] / src / validators / valid-name.tsx
index c3650542714b371348112e6bdc9f15b56eb4b15f..89bb3f96888203691029b322e486cd98b3e0df3f 100644 (file)
@@ -31,7 +31,7 @@ export const validFileName = (value: string) => {
 export const validFilePath = (filePath: string) => {
     const errors = filePath.split('/').map(pathPart => {
         if (pathPart === "") { return "Empty dir name not allowed"; }
-        return validFileName(pathPart);
+        return validNameAllowSlash(pathPart) || validFileName(pathPart);
     });
     return errors.filter(e => e !== undefined)[0];
 };
\ No newline at end of file